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

shop.ini [VATSettings]

The settings of [VATSettings] in shop.ini: ProductCategoryAttribute, UserCountryAttribute, RequireUserCountry, DynamicVatTypeName, RepositoryDirectories, ExtensionDirectories

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/ini-settings/shop/VATSettings.md

On this page

shop.ini [VATSettings]

The block [VATSettings] of settings/shop.ini, with 6 setting(s).

Never edit settings/shop.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/shop.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/shop.ini.append.php for one siteaccess,
  • extension/<extension>/settings/shop.ini.append.php in an extension (read when the extension is active).

ProductCategoryAttribute

Specifies VAT handler class/file name. For example, if the value is
"ezdefault", then the handler class should be named
eZDefaultVATHandler (case does not matter) and placed to file
ezdefaultvathandler.php residing in a directory specified by
"RepositoryDirectories" and "ExtensionDirectories" settings.
Handler=ezdefault
Identifier of the product category content attribute.
E.g. "ProductCategoryAttribute=category".

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/shop.ini.append.php
[VATSettings]
ProductCategoryAttribute=
*/ ?>

UserCountryAttribute

Identifier of the user country content attribute.
E.g. "UserCountryAttribute=country".

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/shop.ini.append.php
[VATSettings]
UserCountryAttribute=
*/ ?>

RequireUserCountry

If set to false, no errors will be displayed in case if user country
is not specified. One might want this when using a custom VAT handler.

Default: true.

<?php /* #?ini charset="utf-8"?
# settings/override/shop.ini.append.php
[VATSettings]
RequireUserCountry=true
*/ ?>

DynamicVatTypeName

Name of the dynamic VAT type displayed in class/object view/edit GUI.

Default: Determined by VAT charging rules.

<?php /* #?ini charset="utf-8"?
# settings/override/shop.ini.append.php
[VATSettings]
DynamicVatTypeName=Determined by VAT charging rules
*/ ?>

RepositoryDirectories

Directories where VAT handlers should be searched for.

Default: a list of 1: kernel/classes/vathandlers.

<?php /* #?ini charset="utf-8"?
# settings/override/shop.ini.append.php
[VATSettings]
# an empty "RepositoryDirectories[]" first replaces the shipped list; without it the items are added
RepositoryDirectories[]
RepositoryDirectories[]=kernel/classes/vathandlers
*/ ?>

ExtensionDirectories

If you are going to implement your VAT handler in an extension
then you should add the extension name to the list below.
In that case VAT handlers will be searched for in the following directory:
extension/<your_extension>/vathandlers

Default: an empty list.

<?php /* #?ini charset="utf-8"?
# settings/override/shop.ini.append.php
[VATSettings]
# an empty "ExtensionDirectories[]" first replaces the shipped list; without it the items are added
ExtensionDirectories[]
*/ ?>

Generated by ./console exp:help:examples from settings/shop.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

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