Skip to the content
Documentation

Product category

No ratings yet

With country dependent VAT, the VAT rules can depend on the product's category. A product gets its category through an attribute of the Product category datatype (ezproductcategory) in its class. The categories themselves are managed under Store > Product categories (Managing product categories).

Adding the attribute to a product class

  1. Go to Setup > Classes, open the product class and press Edit.
  2. Choose Product category in the list of datatypes at the bottom and add the attribute. Give it a name ("Category") and an identifier (category), and store the class.
  3. Name the identifier in the settings, so that the VAT handler finds the attribute:
# settings/override/shop.ini.append.php
[VATSettings]
ProductCategoryAttribute=category

Use the same identifier in every product class that has a category.

Giving a product its category

In the product's edit form, choose the category in the list of the new attribute. A category only matters for products with the dynamic VAT type: a product with a fixed VAT type is charged that type, whatever its category.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.