Adding a simple shop

These documentation pages are no longer maintained. Please visit the new documentation site.

The following items are the steps you should perform to set up the default shop:

  • Create a new content-folder with the name "shop".
  • Add a new class (setup, classes) to the Content group. Set the name and identifier to "product". Add the following attributes to this class:

attribute

name

identifier

checkboxes

Textline

name

name

required, searchable

Textfield

description

short_description

searchable

image

image

image

 

price

price

price

required

The chosen identifiers correspond with the default template: "design/base/override/templates/listitem/product.tpl". If you choose other identifiers, the default template may give an error in the test phase.

To test this shop, go to the front-end (user interface) and change the URL to: "http://[mywebsite]/index.php/tscm/shop/".
A shop with the plain (and ugly) templates should appear.

This shop has multiple pages. The default page is a list of products. The pages which are currently available in the shop:

  • List with products. Shows available products in our shop. The name, short_description, price, and image will be shown for each product. The "More information" link will take us to the Product details page.
  • The product details page contains the same information as presented in the list with product, with the addition of a (long) description of the product. The button "Add to shopping cart" will add the current product to our basket.
  • The basket contains the products we want to buy. On this page we change the quantity of the products and remove products. The user has a choice to continue with shopping or "Checkout" the products.
  • The Checkout process contains multiple webpages. The process is as follows:
    1. Add account information.
    2. Show the entered account information in the "Confirm the order" page.
    3. And hereafter you will see an overview with the products you ordered.
    The Webshop/orders section of the back-end (administration interface) should contain the ordered products.

Comments

Shop module access

eZ 3.5.1

The "/shop" uri is reserved for the Shop module. As a result, when a "shop" folder is added to the content structure, it will refer to "/shop__1" instead.

By default, "/shop/basket" returns "Access denied". You can resolve this by adding the following line to your site.ini.append:

[RoleSettings]
PolicyOmitList[]=shop/basket

This will skip checking access permissions for "/shop/basket".

Editing the "Anonymous" role, as suggested in the link below, by adding policy:

module->shop, function->buy, limitations->*

will grant anonymous users access to the shopping process.

http://www.ez.no/community/forum/...shopping_basket_restriction_annoying

In case you want to restrict shopping functionality to registered users only, you could create a "Guest" role and add the above policy to it.

Error in "shop" name

I'm using EZ 3.5.1, and when I add the folder "shop" and browse index.php/tscm/shop I have to log in.

if I add "testshop" and then browse this, everything is ok.

before I started to create folders with different names, I tried to add sections and rights as previous shown to no avail.

Seems to me "shop" is a protected word and kicks in some form of log in sequence.

Contents

Building an Exponential shop

Setting up the TSCM layout
Setting up a simple shop
    Adding a simple shop
    Modifying the default behavior
Extending the shop with a Paypal paym...


Created

13/12/2004
1:49:28 pm
by Raymond Bosman

Last updated

13/12/2004
2:21:28 pm
by Raymond Bosman

Authors

Raymond Bosman



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.