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 walkthrough

Every block of settings/shop.ini explained with its shipped value - CurrencySettings, MathSettings, ExchangeRatesSettings, ECBExchangeRatesSettings, ShippingSettings, BasketSettings, BasketInfoSettings, VATSettings…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/e-commerce/settings/shop-ini-walkthrough.md

On this page

shop.ini walkthrough

This page is for developers and administrators who configure the shop. It goes through settings/shop.ini block by block, with the shipped value, what each setting does and when to change it. Put changes in settings/override/shop.ini.append.php or a siteaccess file (Shop settings walkthroughs).

Contents

  1. CurrencySettings
  2. MathSettings
  3. ExchangeRatesSettings
  4. ShippingSettings
  5. BasketSettings
  6. BasketInfoSettings
  7. VATSettings
  8. OrderViewSettings
  9. OrderReceiptSettings

CurrencySettings

SettingShippedMeaningChange when
PreferredCurrencyUSDThe shop's currency: the currency of ezprice prices and the default for visitorsAlmost always: set your own currency code

MathSettings

SettingShippedMeaning
MathHandlereZPHPMathFloating point arithmetic in PHP; eZBCMath uses the bcmath extension
MathScale10Digits after the decimal point for eZBCMath only
RoundingTyperoundHow converted prices are rounded: none, round, ceil, floor
RoundingPrecision2Digits kept after the decimal point
RoundingTargetfalseForces the last digits: with precision 2, target 5 turns 89.468543 into 89.45 and target 99 into 89.99

RoundingTarget is the setting behind "charm prices" for converted currencies. It affects automatic conversions, not prices entered by hand.

ExchangeRatesSettings

SettingShippedMeaning
ExchangeRatesUpdateHandlereZECBThe handler that fetches rates when Update autorates is pressed
RepositoryDirectories[]kernel/shop/classes/exchangeratehandlersWhere handlers are found
ExtensionDirectories[]emptyExtensions that carry handlers in exchangeratehandlers/<name>/<name>handler.php
BaseCurrencyEURThe currency the rates are relative to

The block [ECBExchangeRatesSettings] holds where the shipped handler fetches the European Central Bank's daily rates (ServerName, ServerPort, RatesURI). Check from your server that the address answers before you rely on it. A handler of your own is described in Exchange rate handlers.

ShippingSettings

SettingShippedMeaning
Handlercommented out (#Handler=ezdefault)The shipping handler; none is active
RepositoryDirectories[]kernel/classes/shippinghandlersWhere handlers are looked for (this directory is not shipped)
ExtensionDirectories[]emptyExtensions with a shippinghandlers/ directory

Leave Handler unset unless you have written a handler: no handler file is shipped in the kernel, and the comment's ezdefault would not be found. Flat shipping uses a workflow event instead (Simple shipping event, Custom shipping handler).

BasketSettings

SettingShippedMeaning
BasketViewNamebasketThe address name of the basket (/shop/<name>/); /shop/basket/ keeps working whatever you choose

Letters, digits, dash and underscore are allowed; anything else falls back to basket. A design may add shop/<name>.tpl; shop/cart.tpl ships as an example (Shop basket view name).

BasketInfoSettings

SettingShippedMeaning
HandlerezdefaultThe basket info handler that adds calculated price information to the basket
RepositoryDirectories[]kernel/classes/basketinfohandlersWhere handlers are found
ExtensionDirectories[]emptyExtensions with a basketinfohandlers/ directory

See Basket info and confirm order handlers.

VATSettings

SettingShippedMeaning
Handlercommented out (#Handler=ezdefault)The VAT handler; without it VAT rules are not used
ProductCategoryAttributeemptyIdentifier of the product category field
UserCountryAttributeemptyIdentifier of the user's country field
RequireUserCountrytrueReport a missing customer country
DynamicVatTypeNameDetermined by VAT charging rulesThe label of the dynamic VAT type
RepositoryDirectories[], ExtensionDirectories[]kernel/classes/vathandlers, emptyWhere handlers are found (vathandlers/ in extensions)

Details and the rule priority are in Product categories and VAT rules.

OrderViewSettings

SettingShippedMeaning
OrderLinkVieworderviewWhat a placed order links to after checkout, in the customer's order lists and in the order mail: orderview (shop/orderview/<id>) or orderreceipt (shop/orderreceipt/<token>)

With orderview, a guest's order link stops working when the session ends. With orderreceipt, the link never expires and opens for whoever holds it. The administration always links to shop/orderview (Permanent order receipts).

OrderReceiptSettings

SettingShippedMeaning
SecretemptySigns receipt addresses. Empty: generated on first use and kept in <VarDir>/secrets/orderreceipt.key
BcryptCost5Cost of the signature, 4 to 6

Set Secret (32 characters or more, in an override file) only when several installations share one database and must open each other's receipts. Changing it changes every receipt address already sent to customers.

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