Title: Postcode wildcards
Last modified: January 18, 2022

---

# Postcode wildcards

 *  Resolved [elainewildash](https://wordpress.org/support/users/elainewildash/)
 * (@elainewildash)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/postcode-wildcards-2/)
 * 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 PA31AA
 * but exclude e.g.:
 * (PA31)
    PA31 8AB PA318AB
 * etc.

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [Igor H](https://wordpress.org/support/users/ihereira/)
 * (@ihereira)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/postcode-wildcards-2/#post-15266319)
 * Hello there 🙂
 * * Regarding wildcards, please check this similar [forum thread](https://wordpress.org/support/topic/differentiate-between-uk-postcodes-that-have-6-and-7-characters/#:~:text=You%20need%20to,only%20trigger%20PO1).
 * * You can consider using a plugin like
    [https://woocommerce.com/products/conditional-shipping-and-payments/](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.
 *  [seank123](https://wordpress.org/support/users/seank123/)
 * (@seank123)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/postcode-wildcards-2/#post-15267638)
 * PA1 *
    PA2 * PA3 *
 * Make sure there is a space before the *
 *  [Igor H](https://wordpress.org/support/users/ihereira/)
 * (@ihereira)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/postcode-wildcards-2/#post-15274592)
 * Hello [@elainewildash](https://wordpress.org/support/users/elainewildash/)
 * Did the solution provided by [@seank123](https://wordpress.org/support/users/seank123/)
   answer your question? Please let us know so that any other member of this forum
   can benefit. Thank you 🙂
 *  Thread Starter [elainewildash](https://wordpress.org/support/users/elainewildash/)
 * (@elainewildash)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/postcode-wildcards-2/#post-15275688)
 * Hi [@ihereira](https://wordpress.org/support/users/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](https://wordpress.org/support/topic/differentiate-between-uk-postcodes-that-have-6-and-7-characters/#:~:text=You%20need%20to,only%20trigger%20PO1)
   and [@seank123](https://wordpress.org/support/users/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.
 *  [Igor H](https://wordpress.org/support/users/ihereira/)
 * (@ihereira)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/postcode-wildcards-2/#post-15275831)
 * 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](https://webcusp.com/5-easy-steps-to-restrict-shipping-buy-pin-code-zip-codes-woocommerce/).
   I hope this helps.
 *  Thread Starter [elainewildash](https://wordpress.org/support/users/elainewildash/)
 * (@elainewildash)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/postcode-wildcards-2/#post-15275880)
 * Hi [@ihereira](https://wordpress.org/support/users/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.
 *  [Igor H](https://wordpress.org/support/users/ihereira/)
 * (@ihereira)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/postcode-wildcards-2/#post-15275975)
 * 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.
 *  [seank123](https://wordpress.org/support/users/seank123/)
 * (@seank123)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/postcode-wildcards-2/#post-15276074)
 * [@elainewildash](https://wordpress.org/support/users/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!
 *  Thread Starter [elainewildash](https://wordpress.org/support/users/elainewildash/)
 * (@elainewildash)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/postcode-wildcards-2/#post-15276178)
 * Hi [@seank123](https://wordpress.org/support/users/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](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.
 *  [seank123](https://wordpress.org/support/users/seank123/)
 * (@seank123)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/postcode-wildcards-2/#post-15276241)
 * 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.
 *  Thread Starter [elainewildash](https://wordpress.org/support/users/elainewildash/)
 * (@elainewildash)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/postcode-wildcards-2/#post-15276375)
 * Hi [@seank123](https://wordpress.org/support/users/seank123/),
 * Thanks, that’s great. Much appreciated.
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/postcode-wildcards-2/#post-15276429)
 * Hi [@elainewildash](https://wordpress.org/support/users/elainewildash/),
 * Glad to hear that [@seank123](https://wordpress.org/support/users/seank123/) 
   and [@ihereira](https://wordpress.org/support/users/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!

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Postcode wildcards’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [limit](https://wordpress.org/support/topic-tag/limit/)
 * [postcodes](https://wordpress.org/support/topic-tag/postcodes/)

 * 12 replies
 * 4 participants
 * Last reply from: [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/postcode-wildcards-2/#post-15276429)
 * Status: resolved