Postcode wildcards
-
I understand that you can limit those postcodes you wish to ship to however can anyone advise if its possible to include e.g.:
(PA3)
PA3 1AA
PA31AAbut exclude e.g.:
(PA31)
PA31 8AB
PA318ABetc.
-
Hello there π
* Regarding wildcards, please check this similar forum thread.
* You can consider using a plugin like
https://woocommerce.com/products/conditional-shipping-and-payments/To remove specific shipping methods if a specific zip code or postal code is provided during checkout.
I hope this leads you in the right direction. Let us know if there are any questions.
PA1 *
PA2 *
PA3 *Make sure there is a space before the *
Hello @elainewildash
Did the solution provided by @seank123 answer your question? Please let us know so that any other member of this forum can benefit. Thank you π
Hi @ihereira
Thank you for the answers to my question.
Both https://wordpress.org/support/topic/differentiate-between-uk-postcodes-that-have-6-and-7-characters/#:~:text=You%20need%20to,only%20trigger%20PO1 and @seank123 suggest using a space after the first part of the postcode i.e.
rather than using
PA3*
use
PA3 *I think this is likely to be the only way to try to address excluding postcodes (or longer postcodes) that you don’t deliver to.
Hi there,
Thanks for your response. Not the only way, you can change the logic used for the shipping options, and also you can limit to specific Zip or postcodes, as a reference please check this article. I hope this helps.
Hi @ihereira,
Thanks.
Can you explain what you mean by change the logic used for the shipping options?
I’m looking to have one shipping zone of postcodes (we only have the first part of the postcode) to ship to.
Sure π
Can you explain what you mean by change the logic used for the shipping options?
Instead of excluding zip or postal codes, you can provide to WooCommerce settings all the zip or postal codes that are valid without mentioning the ones that are not.
I hope this helps to clarify.
@elainewildash Can you let us know how exactly are you wanting your shipping zones set up?
I’ve done this multiple times on clients sites with UK postcodes to different areas – couriers like to charge more for certain parts of the UK!
Hi @seank123,
Will be shipping via ParcelForce and looking to setup those postcodes that don’t incur additional ParcelForce charges. My understanding is this means excluding Isle of Man, Isles of Scilly, Isle of Wight, Channel Islands, S & N Ireland, Scottish Highlands & Islands.
The ParcelForce PDF: https://www.parcelforce.com/sites/default/files/UKPostcodelistv2Aug19.pdf shows Zone 1 postcodes but e.g. PA3 is included in Zone 1 but PA33 is Zone 2.
So PA3 * will include PA3 but exclude PA33.
Easiest way would be to create two Zones:
Zone 1: Excluded postcodes – PA33* etc – and have no shipping options set.
Zone 2: UK – without postcode checking.This way, any excluded postcode would trigger Zone 1 and the customer will get a message that no shipping options are available to that location.
Any other postcode will then use Zone 2 and whatever shipping options you’ve enabled.
Hi @seank123,
Thanks, that’s great. Much appreciated.
Hi @elainewildash,
Glad to hear that @seank123 and @ihereira were able to help here.
Iβll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.
Have a nice day!
The topic ‘Postcode wildcards’ is closed to new replies.