Configuration
The following pages contain needed information for the configuration of the extension with TypoScript, PageTS and YAML.
Site sets
The payment methods, the shipping methods, the tax classes and the email addresses can also be configured with site sets and site settings instead of TypoScript. Site settings are typed and can be edited in the backend module "Site Settings".
| Site set | Site settings | Loader interface |
|---|---|---|
extcode/ | extcode. | \Extcode\ |
extcode/ | extcode. | \Extcode\ |
extcode/ | extcode. | \Extcode\ |
extcode/ | extcode. | \Extcode\ |
The site settings use the namespace extcode. with the keys of the
TypoScript, e.g. plugin. becomes
extcode.. The special options (plugin.)
can only be configured with TypoScript.
To use a site set:
-
Add the site set to the dependencies of the site:
config/sites/<site>/config.yamldependencies: - extcode/cart-payments - extcode/cart-shippings - extcode/cart-taxclassesCopied! - Adapt the site settings in the backend module "Site Settings" or in
config/.sites/<site>/ settings. yaml -
The payment methods, the shipping methods and the tax classes are read from TypoScript by default. Use the site sets loaders with an alias of the loader interface, each configuration can be moved separately:
EXT:sitepackage/Configuration/Services.yamlservices: Extcode\Cart\Configuration\Loader\PaymentMethodsLoaderInterface: alias: Extcode\Cart\Configuration\Loader\SiteSets\PaymentMethodsLoader public: true Extcode\Cart\Configuration\Loader\ShippingMethodsLoaderInterface: alias: Extcode\Cart\Configuration\Loader\SiteSets\ShippingMethodsLoader public: true Extcode\Cart\Configuration\Loader\TaxClassLoaderInterface: alias: Extcode\Cart\Configuration\Loader\SiteSets\TaxClassLoader public: trueCopied!The email addresses of the site set
extcode/are always read from the site settings. They are used with the feature togglecart- mail cart., see Email addresses. The emails on status changes use them too, their rules are site settings inuse New Order Mail Sender extcode., see Emails on status changes.cart. status Change. mail
Differences to TypoScript:
- The values are typed, e.g.
extra: 7.is a number and the email addresses are lists instead of comma separated strings.95 -
The TypoScript copy syntax
at < .does not exist in YAML. Use an anchor and aliases to use the configuration of a country for other countries:de config/sites/<site>/settings.yamlextcode: cart: payments: countries: de: &de preset: 1 options: 1: title: 'Prepayment' extra: 0.0 taxClassId: 1 status: 'open' at: *de ch: *deCopied! - The payment methods, the shipping methods and the tax classes are read from the site of the current request, the email addresses from the site of the storage page of the order.