Support » Plugin: NP Quote Request WooCommerce » Error: Please enter a valid postcode/ZIP.

  • 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 7 years, 4 months ago by niftynath.
Viewing 15 replies - 1 through 15 (of 56 total)
  • Plugin Author Neah Plugins

    (@gplsaver)

    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?

    Thread Starter niftynath

    (@niftynath)

    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.

    Plugin Author Neah Plugins

    (@gplsaver)

    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, 4 months ago by Neah Plugins.
    • This reply was modified 7 years, 4 months ago by Neah Plugins.
    Plugin Author Neah Plugins

    (@gplsaver)

    Or I should ask what is the “Shipping Location(s)” option?

    • This reply was modified 7 years, 4 months ago by Neah Plugins.
    Thread Starter niftynath

    (@niftynath)

    I do not have any shipping classes,

    Here are my shipping zones: https://gyazo.com/6fa02107b28dc83b9d84389560ae20d9
    Here are my shipping options: https://gyazo.com/841add5ce8274be86a7a556c0cc03491

    Here 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 Address

    Thread Starter niftynath

    (@niftynath)

    I have indeed tried to change them, between “Ship to all countries you sell to” and “Ship to specific countries”

    Plugin Author Neah Plugins

    (@gplsaver)

    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.

    Plugin Author Neah Plugins

    (@gplsaver)

    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, 4 months ago by Neah Plugins.
    • This reply was modified 7 years, 4 months ago by Neah Plugins.
    • This reply was modified 7 years, 4 months ago by Neah Plugins.
    Plugin Author Neah Plugins

    (@gplsaver)

    @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?

    Thread Starter niftynath

    (@niftynath)

    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, 4 months ago by niftynath.
    Thread Starter niftynath

    (@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.

    Thread Starter niftynath

    (@niftynath)

    If there are any other screenshots you need I am willing to send =D

    Thread Starter niftynath

    (@niftynath)

    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, 4 months ago by niftynath.
    Thread Starter niftynath

    (@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.

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

    (@gplsaver)

    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?

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