Add additional countries to checkout

Edit on GitHub

This document explains how to add additional shipping countries selected by customers upon checkout.

To open up store to customers of more than the predefined counties, you must adjust the Spryker code to display more countries for selection in the Spryker checkout.

Multiple countries in Checkout

Prerequisites

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:

  1. Expand the country list by including country ISO codes directly into config/Shared/stores.php.
// 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
  1. Update the glossary so that the ISO country code is resolved to the real name of the country you have added.

data/import/glossary.csv

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
Note

We recommend defining additional tax rules when creating additional countries.

After applying these changes, your buyers can select the countries configured in the checkout dialogue.