Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

Product category

This part of the 4.x documentation is for eZ Publish 4.0, only reference section is common for all eZ Publish 4.x versions as well as eZ Publish 5.x "LegacyStack", please select the version you are using for the most up to date documentation!

The "Country dependent VAT" approach supposes that each of your products can be assigned a product category. The next subsections reveal how this can be achieved. The administration interface makes it possible to add, remove and rename product categories as described in the "Managing product categories" section.

Adding new attribute to a product class

It is necessary to add an attribute of the product category datatype to your product class otherwise it will be impossible to assign a category to a product. The following text reveals how this can be done.

  1.  Access the "Setup" tab in the administration interface, click "Classes" on the left and select the "Content" class group. You should see the list of classes assigned to this group. Find your product class there and click the "Edit" button located in the same line of the list. You will be taken to the class edit interface.
  2.  Select the "Product category" datatype from the drop-down list located in the bottom, click the "Add attribute" button and edit the newly added attribute as shown below. The following screenshot shows the fragment of the class edit interface with newly added attribute of the product category datatype.
     
    Product Category Attribute

    Product Category Attribute

     The system will add a drop-down list called "Category" (the name of the newly added attribute) in the object edit interface for products. You can assign a category to the product that is being edited by selecting the desired category from this list.
  3.  Specify the identifier of the newly added attribute in the "ProductCategoryAttribute" setting located under the "[VATSettings]" section of an override for the "settings/shop.ini" configuration file.

Assigning a category to a product

If your product class contains an attribute of the product category datatype then you can assign a Category to a product when editing it. To do this, edit the product and select the desired category from the drop-down list "Category", as shown in the following screenshot.

Product Category List

Product Category List

 

Please note that product categories are always used together with the dynamic VAT type (as you can see in the screenshot above the last item called "Determined by VAT charging rules" is selected). There is no point to select a category for a product with fixed VAT rate.

Svitlana Shatokhina (11/05/2006 10:59 am)

Ricardo Correia (17/04/2013 2:38 pm)

Svitlana Shatokhina, Geir Arne Waaler, Andrea Melo, Ricardo Correia


Comments

There are no comments.