Product category
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
- Go to Setup > Classes, open the product class and press Edit.
- 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.
- 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
- Svitlana Shatokhina
- Andrea Melo Maintainer
- Geir Arne Waaler Maintainer
- Graham Brookins Updated Maintainer
Comments
Add a comment