Differentiate between UK Postcodes that have 6 and 7 Characters
-
Hi there, having difficulties in working out how I separate 6 and 7 character postcodes in the UK, it is causing some orders to sneak through that are too far away.
I currently enable delivery for the following postcodes for free in one shipping zone:
PO1*
PO2*
PO3*
PO4*
PO5*Another zone for paid deliveries:
PO6*
PO7*
PO9*And final zone covering all of the UK to allow for collection outside of these areas.
All of the allowed postcodes are 6 character postcodes eg PO1###. Now the problem we are having are postcodes with 7 characters eg PO16### are sneaking in and we are having to disappoint and refund customers. How can we stop this from happening please? Happy to use a snippet if this cannot be done in the woocommerce shipping settings.
It would also be good to know how to set up a separate zone with this postcode so I could potentially make a minimum charge and higher delivery fee without it affecting the other postcodes.
Thanks in advance.
The page I need help with: [log in to see the link]
- The topic ‘Differentiate between UK Postcodes that have 6 and 7 Characters’ is closed to new replies.