Closed Poepp closed 1 month ago
Zones configuration should work in current version. Perhaps something is missing in your configuration or in our documentation. We have a test https://github.com/extcode/cart/blob/main/Tests/Unit/Service/AbstractConfigurationFromTypoScriptServiceTest.php for that.
I'll try to test your configuration. Perhaps you can debug what's happen in https://github.com/extcode/cart/blob/main/Classes/Service/AbstractConfigurationFromTypoScriptService.php#L49-L83.
I get your configuration working. But I have to remove the countries
configuration the cart extension provide as an example:
plugin.tx_cart {
shippings {
countries >
}
payments {
countries >
}
}
Thanks again for your quick feedback. I've tested your suggestion and it works for me as well. When reading your comment I might have come up with this configuration as well but this was not clear enough to me. Might be worth mentioning it in the docs?! Nevertheless I close this issue.
Would be great if you could make a suggestion for the docs by creating a pull request! :)
I will take care but it will take some time as I'm OOO a couple of days.
Bug Report
Current Behavior Looks like the Zone-Configuration of former cart versions is no longer working. In my working cart setup I used the following configuration for payments and shipping:
However, with the breaking change of https://docs.typo3.org/p/extcode/cart/9.0/en-us/Changelog/9.0/Breaking-380-TypoScriptCountriesUniformFormat.html#breaking-380-typoscript-for-countries-in-uniform-format the setup above seems no longer working. This makes sense as the rest of the payment and shipping configuration has changed. I was successfully able to get it working using the normal configuration without using zones.
Therefore it would be great to either update the documentation describing how zones can be used with the new configuration for shippings and payments or just remove the zones configuration feature and give a hint that it's no longer available.
Environment
For reference here the working configuration after adaption to the new structure: