• Resolved Jamie

    (@scragglydoggames)


    Hi all,

    This isn’t a support request, but just wanted to put a step by step guide here for anyone who’s trying to add shipping zones for Northern Ireland, as I spent quite some time today trying different things and threads to get it working, and hopefully it’ll save at least one other person the headache! No need to edit functions etc this way.

    So in my case, the website I’m working on ships to Ireland and Northern Ireland at one rate, and then UK & Rest of World at the other.

    Just before I start, I also had Woocommerce Table Rate Shipping installed, as my friend was shipping items in 1’s or 2’s (ie 3 is 1×1 & 1×2), but should work fine without this.

    Into Woocommerce / Settings / Shipping

    I set up 3 zones, and then everything else in Locations not covered

    Ireland – Region = Ireland
    Northern Ireland – Region = UK, postcode = BT*
    UK (excluding NI) – Region, UK, postcode (the following list which you can copy/paste)

    PL*
    PH*
    PE*
    PA*
    OX*
    OL*
    NW*
    NR*
    NP*
    NN*
    NG*
    NE*
    N*
    ML*
    MK*
    ME*
    M*
    LU*
    LS*
    LN*
    LL*
    LE*
    LD*
    LA*
    L*
    KY*
    KW*
    KT*
    KA*
    IV*
    IP*
    IG*
    HX*
    HU*
    HS*
    HR*
    HP*
    HG*
    HD*
    HA*
    GU*
    GL*
    G*
    FY*
    FK*
    EX*
    EN*
    EH*
    EC*
    E*
    DY*
    DT*
    DN*
    DL*
    DH*
    DG*
    DE*
    DD*
    DA*
    CW*
    CV*
    CT*
    CR*
    CO*
    CM*
    CH*
    CF*
    CB*
    CA*
    BS*
    BR*
    BN*
    BL*
    BH*
    BD*
    BB*
    BA*
    B*
    AL*
    AB*
    PO*
    PR*
    RG*
    RH*
    RM*
    S*
    SA*
    SE*
    SG*
    SK*
    SL*
    SM*
    SN*
    SO*
    SP*
    SR*
    SS*
    ST*
    SW*
    SY*
    TA*
    TD*
    TF*
    TN*
    TQ*
    TR*
    TS*
    TW*
    UB*
    W*
    WA*
    WC*
    WD*
    WF*
    WN*
    WR*
    WS*
    WV*
    YO*
    ZE*

    ******

    So now when you check out with a NI postcode, it’ll show the NI postage, whereas if you use any other UK postcode it’ll show the other rates you have set (btw the reference I got the list from via a bit of excel reworking is https://www.doogal.co.uk/UKPostcodes.php for credit)

    This should also be easy to adapt if you’re trying to have different rates for England/Wales/Scotland as well, just get the first 2 letters of the relevant country’s postcode with a *, have that in one, and then dump everything else into the other.

    I hope this helps someone!

    • This topic was modified 5 years, 1 month ago by Jamie.
Viewing 31 replies (of 31 total)
  • Oops, just noticed that Jersey and Guernsey are classed as seperate locations in Woocommerce, so won’t really need to add those codes for the islands if you select them as seperate countries with a different shipping zone from the UK

Viewing 31 replies (of 31 total)
  • The topic ‘Easily Adding Northern Ireland to Shipping Zones in Woocommerce’ is closed to new replies.