Error: Please enter a valid postcode/ZIP.
-
Hi,
I have an issue when checking out if I have “Sell to specific countries” selected in WooCommerce general settings. I have consulted with WooCommerce support, and followed instructions, finally getting the checkout process working properly once deactivating Woo-RFQ. Please see the following issue below for full details:
https://github.com/woocommerce/woocommerce/issues/12142
- This topic was modified 7 years, 11 months ago by niftynath.
-
Hi niftynath,
From “fatal error” thread previously:
“Somehow the problem disappeared when I unchecked the option “Hide shipping costs until an address is entered” in WooCommerce > Settings > Shipping > Shipping options”
Is that still the case?
Hey again,
It appears that is not the case as I have tried unchecking the option again. I have tested the checkout process when selecting the option “Sell to all countries”, and upon selecting the United Kingdom in checkout, the request goes through fine. The problem seems to be with the fact that the user is unable to select a country within the checkout process (no drop down menu) as only one country is available when selecting “Sell to specific countries” and selecting only the United Kingdom.
After consulting with WC support, I deactivated the Woo-RFQ plugin, and the checkout process worked fine. Once reactivating Woo-RFQ, the message “Please enter a valid postcode/ZIP.” appeared again.
OK. Obviously Woo-RFQ is causing the problem. I will try to reproduce it at my end and get it fixed.
Have you tried adjusting “Shipping Location(s)” options.
- This reply was modified 7 years, 11 months ago by Neah Plugins.
- This reply was modified 7 years, 11 months ago by Neah Plugins.
Or I should ask what is the “Shipping Location(s)” option?
- This reply was modified 7 years, 11 months ago by Neah Plugins.
I do not have any shipping classes,
Here are my shipping zones: https://gyazo.com/6fa02107b28dc83b9d84389560ae20d9
Here are my shipping options: https://gyazo.com/841add5ce8274be86a7a556c0cc03491Here are my general settings related to shipping: https://gyazo.com/462bb8ece322acbe2513dab825499ee0
WooCommerce General settings:
Base Location: United Kingdom
Selling Location(s): Sell to Specific Countries
Sell to Specific Countries: United Kingdom (ONLY)
Shipping Location(s): Ship to all countries you sell to
Default Customer Location: Shop Base AddressI have indeed tried to change them, between “Ship to all countries you sell to” and “Ship to specific countries”
Oh Well… I thought maybe we could get lucky and find an easy solution. I will notify when i am able to duplicate and fix.
Pesky problem for sure. I was not able to exactly duplicate it or i should say i was able to duplicate it with and without woo-rfq. But here is how i was able to get around it( again with or without woo-rfq). I added a shipping method to the “rest of the world” zone. then i disabled the shipping method. ( not delete but disable or keep the cost blank). I did not get the error after that regardless of woo-rfq.
Another thing i noticed is that if i switched back and forth between shipping address to billing address(checking and unchecking the “ship to a different address” the problem would go away when i checked the “ship to a different address”.
Your tests might vary. i am not really sure about this yet.just sharing what i got so far.
One question i have for you is : do you get this problem with addresses of customers whose addresses are valid in those zones or only on customers who are not in UK?
- This reply was modified 7 years, 11 months ago by Neah Plugins.
- This reply was modified 7 years, 11 months ago by Neah Plugins.
- This reply was modified 7 years, 11 months ago by Neah Plugins.
@niftynath,
ignore last post. not consistent i found out.
another question i have: do you get the error message “no shipping available” or zip-code not valid?Hey. This is that happens.
When I have ONLY billing address available, upon submitting the request, I get these error messages, which are in no way related to my country let alone my postcode:Please enter a valid postcode/ZIP.
Unfortunately we do not ship to to the US. Please enter an alternative shipping address.
No shipping method has been selected. Please double check your address, or contact us if you need any help.at this stage I also have the problem:
“There are no shipping methods available. Please check your address or contact us if you need any help.” – EDIT: where the shipping options should display
Once I select “Ship to a different address”, I get my local shipping options available, being local pickup and free shipping, and upon submitting the request I only get this error:
Please enter a valid postcode/ZIP.
- This reply was modified 7 years, 11 months ago by niftynath.
“One question i have for you is : do you get this problem with addresses of customers whose addresses are valid in those zones or only on customers who are not in UK?”
The postcode I am entering is within the zone. I have also attempted to put a different address but with a similar postcode in the shipping address than the billing address, the same problem persists. both of the postcodes I am using come under the wildcard “DA*”, so an example I have used is DA121AB. I do believe however that the problem lies somewhere to do with the inability to select a country (the drop down menu does not appear), as it seems to work absolutely fine if I allowed the customer to choose between countries “Sell/Ship to all countries”, and then select United Kingdom once again upon checkout. Obviously I do not want customers to be able to select between countries.
I have tested a plugin WITH Woo-RFQ, named “Woocommerce Add Countries”. This plugin allows me to separate countries within the United Kingdom, such as England, Scotland, Wales, Northern Ireland. Once defining these under “Sell to specific countries”, with “Ship to the countries I sell to” selected, the user can then pick between these individual countries at checkout, and the order will go through fine. This is a workaround I would be happIER using, however I ONLY ship to England out of the separate countries, which would be defeating the object of solving this problem aha =D.
If there are any other screenshots you need I am willing to send =D
Here is an example address which I believe should work fine: https://gyazo.com/a420e806200f388a50b7f3f85b45ea63
EDIT: I have also tested with shipping debugging mode on and I get this at checkout “Customer matched zone “Local””
- This reply was modified 7 years, 11 months ago by niftynath.
I have already tested using my home address and my work address for both/either billing/shipping addresses, same issue. I will now default using that exact address in the link above for both billing/shipping for further testing.
Thanks for the replies.
questions:
1-Are you testing as a visitor or as a customer who already has an account and is logged in.
2-Do you have any registered customers who have non-uk addresses?
- The topic ‘Error: Please enter a valid postcode/ZIP.’ is closed to new replies.