Support » Plugin: WooCommerce » Easily Adding Northern Ireland to Shipping Zones in Woocommerce

  • 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 1 month, 3 weeks ago by Jamie.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You can also refine this even more if, for example, your courier charges more for areas like the Scottish Highlands.

    For example the following case:

    AB* would be the Aberdeen area – but AB37-52 are classed by some couriers as a different, more expensive, region.

    So using these in a new Shipping Zone (making sure you place it BEFORE the mainland UK one) would target those:

    AB37 *
    AB38 *
    AB40 *
    AB41 *
    AB42 *
    AB43 *
    AB44 *
    AB45 *
    AB46 *
    AB47 *
    AB48 *
    AB49 *
    AB50 *
    AB51 *
    AB52 *
    AB53 *
    AB54 *
    AB55 *
    AB56 *

    Plugin Support RK

    (@riaanknoetze)

    Wow, that’s an impressive list @scragglydoggames and a nice workaround.

    For future reference though, I’m aware of a plugin that adds the regions for all of the UK – https://codecanyon.net/item/woocommerce-regions-pack/23194431. With that in hand, you could just select the exact regions for your shipping zones rather than rely on postcodes 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.