• Resolved mattsingley

    (@mattsingley)


    Hello, I am having issues with zip code validation at checkout. Everything works fine unless the customer uses a zip+4 number. In other words, if the zip code input is 91362 everything works fine (that is, all shipping options come up), but if 91362-5948 is input (a standard U.S. zip+4), then the error states that there are no valid shipping options available.

    I have temporarily worked around this by adding a $5.99 flat rate in case of no matching address in shipping options. This isn’t sustainable, we typically offer free shipping or paid priority shipping. Also, our international customers (who usually pay $20+ shipping) will be getting quite a deal and we will lose money on every order.

    Although I have used shipping extensions in the past, I have deactivated all of those, and I get the same results. I have tried disabling Woocommerce Services, same results. Something in ZIP validation does not recognize the zip+4 input and renders it invalid.

    I’m searched A LOT and cannot seem to find a solution. I know that typical troubleshooting advice is “perhaps your theme or another plugin is causing a conflict” but I think it’s more than that. Is there a specific error, or setting, that should be checked?

    FWIW, I don’t know if it’s related, but when we activate Jetpack it gives an invalid address error as well. I’m stumped. Any help is appreciated.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    @mattsingley Can you elaborate on how are you shipping zones configured? I don’t think the nine-digit code will be recognized unless it is specifically part of the shipping zone configuration.

    So, for example, if you have configured a shipping zone for the zip code 90008, but at checkout the customer enters zip code 90008-0051, it won’t be recognized as part of the zone – since it does not match the configured zip code exactly.

    The shipping zone would have to specifically include the code 90008-0051 for it to be recognized.

    Thread Starter mattsingley

    (@mattsingley)

    Fernando, thank you. I believe you addressed it immediately.

    We have a fairly complex shipping zone set-up since we offer tiered pricing for local delivery based upon zip code. In our immediate area we have 4 different delivery zones that are identified by zip (e.g. 90008) As a workaround to include the rest of California, we created an “out of local delivery zone” zone with all additional California zip codes (all 5 digits). All other zones above that are by State, which presumably DOES include +4 validation. I just tested this with a zip+4 in New York state (no error) and Zip+4 in a different part of California (error).

    Thank you. I’ll have to rethink how we have local delivery set up, but for now will remove it so that other orders are not messed up. Thank you again.

    Hi Matt – I found your topic since I’m experiencing the exact same issue. Were you able to find a workaround?

    Thanks and take care!

    Thread Starter mattsingley

    (@mattsingley)

    @jhokanson unfortunately, not in the way I wanted. We started getting multiple errors with other customers who *did* include a zip+4 for shipping, even if they weren’t delivery. I cannot remember the exact steps we took, but essentially we just eliminated the scenario we had set up above (that is, the local delivery code, charged based upon zip) and ended up installing an address validation plugin. Long story short: zip+4 won’t work if you have specific zip codes line itemed for shipping.

    Another way of saying it: if we had 91362 as a specific zip in California, we added all of the other zips in California to a separate zone called “California” (which is tedious af btw), but then if anybody anywhere in California put in their zip+4, it would only show our fallback shipping method, which was much more expensive to account for international shipping.

    tl;dr zip+4 doesn’t work in Woo if you have individual zip codes configured, it only works with a full zone like, “California”. Sorry I couldn’t give you a more productive answer!

    @mattsingley thanks for the quick reply and info!

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

The topic ‘Zip+4 Validation Error’ is closed to new replies.