HowTo - Add additional countries to Spryker checkoutEdit on GitHub
This HowTo explains how to add additional shipping countries selected by the end users upon checkout.
Customers that want to open up their store to buyers of more than the predefined counties need to make adjustments to the Spryker code to display more countries for selection in the Spryker checkout.
Ensure that you have an up-to-date installation of any of the following instances:
- Spryker B2C Shop
- Spryker B2B Shop
- Spryker Suite
Add countries to checkout
To add additional countries to the checkout, follow the steps:
- Expand the country list by including country ISO codes directly into
// first entry is default. 'countries' => ['DE', 'AT', 'NO', 'CH', 'ES', 'GB','AU'], //Add the countries you would like to add to this array. For this example "AU" (Australia) was added
- Update the glossary so that the ISO country code is resolved to the real name of the country you added.
ountries.iso.AU,Australia,en_US countries.iso.AT,Austria,en_US countries.iso.AT,Österreich,de_DE countries.iso.DE,Germany,en_US countries.iso.DE,Deutschland,de_DE countries.iso.AT,Österreich,de_DE countries.iso.AT,Austria,en_US countries.iso.NO,Norway,en_US countries.iso.NO,Norwegen,de_DE countries.iso.CH,Switzerland,en_US countries.iso.CH,Schweiz,de_DE countries.iso.ES,Spain,en_US countries.iso.ES,Spanien,de_DE countries.iso.GB,United Kingdom,en_US countries.iso.GB,Großbritannien,de_DE
It will make sense to define additional tax rules when creating additional countries.
After these changes are performed, your buyers will be able to select the countries configured in the checkout dialogue.
For submitting the form