Hi,
I have a store that only ships to Australia and New Zealand.
I configured 2 x shipping zones in AC7 admin, but checkout still shoes all countries in the drop down list.
What is the best way to ensure that only Australia and New Zealand appear in all the various checkout countries drop down lists?
Shouldn't the shipping zones handle this?
I really don't want to have to delete ALL the other countries in the AC7 Shipping > Countries section.
Thanks, Mark
Country drop down list filter
Re: Country drop down list filter
You can update the country list loading code to take care of shipping zones. For example in the InitializeCountries() function in onepagecheckout.ascx.cs file you can update the following loader code
something like below so that only specific countries should be loaded.
Code: Select all
_Countries = CountryDataSource.LoadForStore("Name");
Code: Select all
_Countries = new CountryCollection();
ShipZoneCollection shipZones = ShipZoneDataSource.LoadForStore();
foreach (ShipZone shipZone in shipZones)
{
CountryCollection countries = CountryDataSource.LoadForShipZone(shipZone.ShipZoneId);
_Countries.AddRange(countries);
}