Breaking: #380 - TypoScript for countries in uniform format
See Issue 380
and forge#435 and forge#435__
Description
Up to now it was possible to set the country specific configuration of shippings
and payments directly under plugin.
and
plugin.
. Until the implementation of forge#435
that's how it was done in the extension itself although the documentation
already showed the new structure.
This breaking change does no longer allow the old structure. As a result the structure to set options is uniform in different places which makes it easier for Integrators to set up this extension.
The uniform structure are now given for options in:
plugin.
- see belowtx_ cart. shippings plugin.
- see belowtx_ cart. payment plugin.
- see Breaking 437 (Allowed Countries)tx_ cart. settings. countries plugin.
- see Breaking 437 (Currency)tx_ cart. settings. currencies
Affected Installations
All installations which use the old structure ()which is shown below in the migration description) are affected. The TypoScript needs to be adapted as shown below.
Migration
The country configuration needs to be wrapper in a countries
level.
The following two snippets show the BEFORE and AFTER implementation.
plugin.tx_cart {
shippings {
de {
preset = 1
options {
1 {
title = Standard
extra = 0.00
taxClassId = 1
status = open
}
}
}
}
payments {
de {
preset = 1
options {
1 {
title = Pay in advance
extra = 0.00
taxClassId = 1
status = open
}
}
}
}
}
plugin.tx_cart {
shippings {
countries {
de {
preset = 1
options {
1 {
title = Standard
extra = 0.00
taxClassId = 1
status = open
}
}
}
}
}
}
payments {
countries {
de {
preset = 1
options {
1 {
title = Pay in advance
extra = 0.00
taxClassId = 1
status = open
}
}
}
}
}
}