1. I am testing as a customer with an account
2. Nope, none. I have checked my user and selected United Kingdom from the country dropdown there too. I believe this selection is changed based on WooCommerce’s general settings also, as only United Kingdom appears in the drop down menu under users for both billing and shipping. If I change WooCommerce’s general settings to sell to all countries then other countries become available.
“I have checked my user and selected United Kingdom from the country dropdown there too”
When you checked the user, under “profile”, does it have a shipping as well as a billing address, both with countries as UK? as well as under my account in woocommerce. In other words do the addresses under profile and myaccount match?
-
This reply was modified 9 years, 6 months ago by
Neah Plugins.
I also just checked it logged out (checkout as a guest), same problem.
Yes, Customer billing address and customer shipping address both exactly the same addresses used in that example. Both United Kingdom, both DA12 1AB postcode.
and yes sorry the addresses under My Account match too
1 thing I have noticed though is that in My Account, United Kingdom does not appear, but every other field does. Still, I don’t understand how it would work without Woo-RFQ activated but not with it even if this is the case. When I change my details in the checkout process, they are updated simultaneously under the profile in WordPress users.
Ah right, it doesn’t appear because the customer country matches the shop base address, there should be no problems here. If the shop base is a different country, then United Kingdom appears with the addresses under My Account, but still the same issue at checkout.
“Still, I don’t understand how it would work without Woo-RFQ activated but not with it even if this is the case”
That is I have been trying to isolate.
It is indeed a very strange issue. Seems like it must be something so simple that is preventing this. I am just clueless how I use the same example address in both billing/shipping address and I get a simple “Please enter a valid postcode/ZIP.” when both forms are filled out, but if ship to a different address is disabled, I get this US message and my shipping options don’t match on top of this, really peculiar.
Are you getting similar issues at all? I read your message that you told me to ignore earlier about checking/unchecking ship to different address, and also the question about no shipping methods available which seemed like you were heading in the right direction.
I put in your store/ shipping settings and i got the following confusing results:
1-I got same problems WITH and WITHOUT woo-rfq
2-Reactivated the plugin and deactivated and then I did not get the problem (when I removed woo-rfq)
3-I did not get the problem when i was able to show the country UK showing in both wordpress profile and under my account with/without Woo-RFQ.
Also you can enable the enable shipping debugging under system status -> tools to see if when customer are matching the shipping zone
Yes, I have already done that. I get this every time I go to the checkout: Customer matched zone “Local”
EDIT: Then I proceed to submit and get the error.
-
This reply was modified 9 years, 6 months ago by
niftynath.
@niftynath
one thing to test:
We can see what happens if we skip the zip code validation
for testing purpose,
put the following at the end of your functions.php in your theme or child theme directory
add_filter( 'woocommerce_validate_postcode', 'gpls_woo_rfq_validate_postcode',1000,3 );
public function gpls_woo_rfq_validate_postcode($valid, $postcode, $country)
{
$valid=true;
return $valid;
}
I still get these errors if I use only billing address:
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.