Support » Plugin: WooCommerce » Shipping Local Delivery UK Post Code Outers

  • I have just started to use WooCommerce and in the shipping service set-up for local delivery, there is a postcode filter, but I cannot get it to work for just the UK Outer part of the Postcode(OX26)?

    I understand that the US “Zip Code” is constructed in a different way to the UK.

    In the UK our “Post Code” OX26 2AG has an “Outer” + Space + “Inner”, for this filter to work well it would need to work on The Outer, Full Post Code or a wild card, E.G. OX26,OX26 2AG,OX2*

    Some companies have two postocodes, one at the front of the building and a different postcode where the deliveries entrance is at the back of the same building but in a different street and postcode.

    Therefore all these local postcodes would all get free delivery, “OX26 4AG” (Outer Match), “OX26 2AG” (Full Match) or “OX25 3RE” (Wildcard Match)

    The match should be case insensitive as entering “OX26 2AG” or “ox26 2ag” needs to trigger local delivery.

    The website is for my daughters who want an online postal or local delivery options on checkout based on a local “Post Code” filter

    I am ok with WordPress code and open to Ideas?


Viewing 3 replies - 1 through 3 (of 3 total)
  • I found the solution on GitHub it looks like the Wildcard feature is planned for a future update!

    So I used the code, when testing I was able to set the Zip/Post Code Filter to OX26*, and it all worked out the box 🙂

    Many Many thanks to the developers!


    Just for reference and to see how important the wildcard search was there are 857 different postcodes with the OX26 outer!

    That is a small radius that will need extending to surrounding areas

    David 🙂

    Hi there, I am just setting up a store and want to only ship to various postcodes. Am trying to replicate what you did above (ie so that anyone putting in a full postocde (with or without space) that starts with OX26 will be able to order. On GitHub I have just gone to the ‘class-wc-shipping-local-delivery.php’ page and copied the code there to replace the current code. Still not working though. What other steps do I need.

    In the Local Delivery settings I have the postcodes set up like B5*,B6*,B7* etc. is this correct?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shipping Local Delivery UK Post Code Outers’ is closed to new replies.