Articles on: Developer Options

How do I instruct the app to only show some country/province options in the dropdowns?

Add the code below to the head section in your theme.liquid file, and add the country codes that correspond to the countries that you'd like to display:

<script>window['docappShippingAllowedCountryCodes'] = ['US','CA'];</script>

Add the code below to the head section in your theme.liquid file, to define the province codes that are allowed for a given country. Only the countries with defined allowed provinces will be filtered. Other countries will still display all available provinces.

<script>window['docappShippingAllowedProvinceCodes'] = {"{'US': ['NY']}"};</script>

Updated on: 27/03/2024