{% extends "commerce/_layouts/store-settings" %} {% import "_includes/forms" as forms %} {% block content %}
{{ 'This is the address where your store is located. It may be used by various plugins to determine things like shipping and taxes. It could also be used in PDF receipts.'|t('commerce') }}
{% js %} window.states = {{ craft.commerce.states.allStates|values|json_encode|raw }}; // add any custom state value that could not be in the standard list of states. window.states.push({'name': '{{ storeLocation.stateValue }}', 'id': '{{ storeLocation.stateValue }}'}); $('#stateValue-field').find('select').selectize({ valueField: 'id', create: true, items: ['{{ storeLocation.stateValue }}'], options: window.states, labelField: 'name', searchField: ['name'], dropdownParent: 'body', inputClass: 'selectize-input text', allowEmptyOption: false }); {% endjs %} {% endblock %}