Restricting or changing the Countries list
Permalink Browser Info Environment
The shipping country multi-select is common across all shipping modules. eCommerce will only try to use zone based shipping where a country is selected in this multi-select (or 'all' is selected)(the same applies to all shipping modules).
In the checkout process, the shipping/billing address dropdown is an eCommerce input that is made before eCommerce enters a shipping module, and will only allow/enter a shipping module if the selected country address matches the country multi-select for the shipping module.
To restrict the countries list, or put the countries for your regular customers at the top, you can override and edit the C5 countries list (and also the state/provinces):
concrete/helpers/lists/countries.php
concrete/helpers/lists/states_provinces.php
To override these list files, see
http://www.concrete5.org/documentation/how-tos/developers/change-th...
In the checkout process, the shipping/billing address dropdown is an eCommerce input that is made before eCommerce enters a shipping module, and will only allow/enter a shipping module if the selected country address matches the country multi-select for the shipping module.
To restrict the countries list, or put the countries for your regular customers at the top, you can override and edit the C5 countries list (and also the state/provinces):
concrete/helpers/lists/countries.php
concrete/helpers/lists/states_provinces.php
To override these list files, see
http://www.concrete5.org/documentation/how-tos/developers/change-th...
Type: | Discussion |
---|---|
Status: | Archived |
Just a short update.
the above did not get approved, but we now have some events in c5.6.1 that make it possible to respond to the lists being loaded and respond with modified lists.
At the moment, these lists are still sorted by the list helpers after they have been modified, making it impossible to change the sort order.
I have a pull request on Github to change this, so hopefully 5.6.1.1 will allow event handlers to change the sort order.
https://github.com/concrete5/concrete5/pull/933...
the above did not get approved, but we now have some events in c5.6.1 that make it possible to respond to the lists being loaded and respond with modified lists.
At the moment, these lists are still sorted by the list helpers after they have been modified, making it impossible to change the sort order.
I have a pull request on Github to change this, so hopefully 5.6.1.1 will allow event handlers to change the sort order.
https://github.com/concrete5/concrete5/pull/933...
When approved (hopefully for the upcoming C5.6), this means that addons can be developed to make these lists editable via the dashboard.