Store Language and Currency
Before you update the store language or currency, make sure that the language or currency is supported by Zid.
Update Supported Language & Currency
Follow these steps:
1- Log in to your account to check Store settings.
2- Go to the Basic Settings section and select Store Language and Currencies.
3- Add/Delete supported languages and currencies.
Deprecated
posting directly to form '/customer/lang-shipping-country' is deprecated use system template form
template_for_shipping_destination_currency_lang
4- include the template name template_for_shipping_destination_currency_lang
example:
<div class="header">
<div class="modal">
{% include 'template_for_shipping_destination_currency_lang' with { 'hideDestination' : false, 'hideLanguage' : false , 'hideCurrency' : false } %}
</div>
</div>
prefered to add the template inside a modal view
5- check session payload to display the session country,city,currency and language
example
<div class="header">
<div class="shipping-to">
{{ session.country.name }} {% if session.country.city %} - {{ session.country.city.name }} {% endif %}
</div>
</div>
<div class="header">
<div class="currency-language">
<span class="currency">{{ session.currency.code }}</span>
<span class="language">{{ session.language.name }}</span>
</div>
</div>
Last modified: 3 months ago