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 [ExchangeRatesSettings]

The settings of [ExchangeRatesSettings] in shop.ini: ExchangeRatesUpdateHandler, RepositoryDirectories, ExtensionDirectories, BaseCurrency

Download as PDF

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

On this page

shop.ini [ExchangeRatesSettings]

The block [ExchangeRatesSettings] of settings/shop.ini, with 4 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).

ExchangeRatesUpdateHandler

eZECB - european central bank

Default: eZECB.

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

RepositoryDirectories

Default: a list of 1: kernel/shop/classes/exchangeratehandlers.

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

ExtensionDirectories

A list of extensions containing exchange rates update handlers
These handlers must be placed in : <extension>/<your_extension>/exchangeratehandlers/<handler_name>/<handler_name>handler.php
And contain a class called : <handler_name>Handler
This class must implement eZExchangeRatesUpdateHandler ( kernel/shop/classes/exchangeratehandlers/ezexchangeratesupdatehandler.php )
It's common to create a settings/shop.ini.append file
in your extension and define 'ExtensionDirectories' in it to automatically
get handler from the extension when it's turned on.

Default: a list of 1: ``.

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

BaseCurrency

Base currency for rates: USD/<base>, NOK/<base>, UAH/<base>, ...

Default: EUR.

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

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