Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,155 of 9,155 pages
About the help in other languages
All help pages

Products, prices and VAT

Model products for the shop - the price datatypes (ezprice, ezmultiprice), options and variants, VAT types and VAT rules by country and product category, currencies, rounding and discounts.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/creators/website-creators/products-prices-and-vat.md

On this page

Products, prices and VAT

This page is for website creators who set up the products of a shop: how prices are stored, how VAT is charged, and which settings decide currencies and rounding.

Contents

  1. The product class
  2. Price datatypes
  3. Options and variants
  4. VAT
  5. Currencies and rounding
  6. Discounts

The product class

A product is content of any class with a price field. The shipped product class is a good start; add fields for what your products need (SKU as ezstring, images as relations, a category). Products live in folders like other content and are found by search and menus.

Price datatypes

DatatypeUse
ezpriceone price, with a VAT type and "price includes VAT" or not
ezmultipriceone price per currency
ezproductcategorythe product category used by VAT rules

Options and variants

ezoption, ezmultioption, ezmultioption2 and ezrangeoption let visitors choose options (size, color) that can change the price; the choice is stored with the basket item. For products that differ in stock or images, separate products are usually clearer.

VAT

ToolWhereMeaning
VAT typesStore > VAT types (shop/vattype)named percentages: standard, reduced, zero
VAT rulesshop/vatrules, shop/editvatrulewhich VAT type applies by customer country and product category
Settingsshop.ini [VATSettings]Handler (shipped unset), ProductCategoryAttribute, UserCountryAttribute, RequireUserCountry=true, DynamicVatTypeName

VAT rules take effect only once a VAT handler is set: put Handler=ezdefault in [VATSettings] of settings/override/shop.ini.append.php. The shipped settings/shop.ini leaves it commented out, because switching it on changes checkout on an existing shop (the customer's country becomes required); the VAT rules page shows a notice while rules exist and no handler applies them.

With VAT rules, choose the VAT type "Determined by VAT charging rules" (DynamicVatTypeName) on the price, set which attribute holds the product category and which user attribute the country, and the rule for the customer's country and the product's category applies. The Store dashboard warns when a 0 percent VAT type is in use.

Note

VAT law differs by country. The shop calculates what you configure; whether that is correct for your business is a question for your tax adviser.

Currencies and rounding

Setting (shop.ini)ShippedMeaning
[CurrencySettings] PreferredCurrencyUSDthe shop's currency
[ExchangeRatesSettings] BaseCurrency, ExchangeRatesUpdateHandlerEUR, eZECBexchange rates for ezmultiprice
[MathSettings] RoundingType, RoundingPrecisionround, 2rounding of prices

Currencies are managed in shop/currencylist; visitors can choose theirs with shop/setpreferredcurrency.

Discounts

Discount groups (shop/discountgroup) give user groups a percentage off products or classes, with rules per group (shop/discountruleedit).

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x