We have the need to have a different postage cost for a certain postcode in Britain. Our client charges more to deliver to Northern Ireland however as it is still part of the UK it has the same country code.
Is it possible to set postage based on postal code. Or how does uWebshop use the country and iso codes, could I just make one up for Northern Ireland.
For the countries, uWebshop uses a file calles countries.xml in /scripts/uWebshop/. Although it it filled with countries, the only thing that uWebshop does with it, is matching the code to a name. The code should be saved in the order, and the name can be anything.
so while it says something like this: <country code="GB" iso="826">United Kingdom</country>
tip: you can even use a per store countries.xml using the syntax: countries_storeNodeName.xml (counties_en.xml) to let a specific store use a specific country file. Keepin mind that the global countries.xml file is used in the Umbraco backend and should contain all the countries that are specified in the specific store county files.
Best,
Arnold
ps. I suggest to use our support desk to send in tickets instead of the Umbraco forum. You can find our support desk at http://support.uWebshop.com ;
Set shipping cost for postcode
We have the need to have a different postage cost for a certain postcode in Britain. Our client charges more to deliver to Northern Ireland however as it is still part of the UK it has the same country code.
Is it possible to set postage based on postal code. Or how does uWebshop use the country and iso codes, could I just make one up for Northern Ireland.
HI SuzyB,
For the countries, uWebshop uses a file calles countries.xml in /scripts/uWebshop/.
Although it it filled with countries, the only thing that uWebshop does with it, is matching the code to a name.
The code should be saved in the order, and the name can be anything.
so while it says something like this:
<country code="GB" iso="826">United Kingdom</country>
you can also make it:
<country code="AA" iso="123">United Kingdom Postcode 1000 - 2000</country>
<country code="AB" iso="124">Northern Ireland Postcode 55 - 60</country>
Another option is to add use the Shipping Provider API, and do some custom action in there.
And example can be seen on our Github: https://github.com/uWebshop/ShippingProviders/blob/master/uWebshop.Shipping.Example/ShippingExample.cs
tip: you can even use a per store countries.xml using the syntax: countries_storeNodeName.xml (counties_en.xml) to let a specific store use a specific country file.
Keepin mind that the global countries.xml file is used in the Umbraco backend and should contain all the countries that are specified in the specific store county files.
Best,
Arnold
ps. I suggest to use our support desk to send in tickets instead of the Umbraco forum. You can find our support desk at http://support.uWebshop.com ;
is working on a reply...