Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • suzyb 474 posts 932 karma points
    Aug 27, 2014 @ 16:07
    suzyb
    0

    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.

  • uWebshop 35 posts 140 karma points
    Aug 27, 2014 @ 17:47
    uWebshop
    0

    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 ;

Please Sign in or register to post replies

Write your reply to:

Draft