• Resolved niftynath

    (@niftynath)


    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 8 years, 4 months ago by niftynath.
Viewing 15 replies - 16 through 30 (of 56 total)
  • Thread Starter niftynath

    (@niftynath)

    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.

    Thread Starter niftynath

    (@niftynath)

    Oops posted twice

    • This reply was modified 8 years, 4 months ago by niftynath.
    Plugin Author Neah Plugins

    (@gplsaver)

    “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 8 years, 4 months ago by Neah Plugins.
    Thread Starter niftynath

    (@niftynath)

    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.

    Thread Starter niftynath

    (@niftynath)

    and yes sorry the addresses under My Account match too

    Thread Starter niftynath

    (@niftynath)

    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.

    Thread Starter niftynath

    (@niftynath)

    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.

    Plugin Author Neah Plugins

    (@gplsaver)

    “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.

    Thread Starter niftynath

    (@niftynath)

    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.

    Thread Starter niftynath

    (@niftynath)

    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.

    Plugin Author Neah Plugins

    (@gplsaver)

    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

    Thread Starter niftynath

    (@niftynath)

    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 8 years, 4 months ago by niftynath.
    Plugin Author Neah Plugins

    (@gplsaver)

    @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;
    
            }
    Thread Starter niftynath

    (@niftynath)

    Order successful

    Thread Starter niftynath

    (@niftynath)

    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.

Viewing 15 replies - 16 through 30 (of 56 total)
  • The topic ‘Error: Please enter a valid postcode/ZIP.’ is closed to new replies.