0

I've been running into an issue on our website where a customer (likely on accident) does not change their state in the Shipping Address, so that they might end up with a Shipping Address in Los Angeles, AL. They obviously meant Los Angeles, CA, but now we don't charge them shipping because it's outside of California.

Is there any way that we could validate the shipping address before the customer moves onto the next stage in the purchase process?

1
  • tried using Zeal Explore Address add on but doesnt seem to work.. Google maps api..?
    – Bart
    Commented Feb 14, 2019 at 23:34

1 Answer 1

0

There is nothing built into Store that would allow actual address verification if you are using the default shipping plugin. Third party plugins USPS, UPS, FedEx offer some verification between City, State, & Zip but won't stop a user from checking out in most cases.

If you do not offer free shipping on your site you could easily prevent the user from being able to checkout by making sure the shipping total is higher then 0.

{exp:store:checkout ...}
    ... other template code ...
  {if order_shipping_total > 0}
   <input type="submit" value"submit" name="submit" />
  {else}
    Something appears to be wrong with your shipping details please make sure everything is valid
    <input type="submit" name="update_cart" value="Update Cart" />
  {/if}
{/exp:store:checkout}

There are multiple address verification APIs that you could also integrate yourself. I personally use SmartyStreets on a few of my clients sites but there are many other too. EasyPost is very nice and also allows you to print shipping labels and connect to many other shipping providers (would require a custom shipping extension), PostCoder Web, USPS, UPS, StrikeIron World, or StrikeIron NA just to name a few.

1
  • This isn't a shipping issue, unfortunately. It is a tax issue. We only charge tax in the state of California. I will look into those plugins though, in case they might work for what we need.
    – B Mack
    Commented Feb 11, 2015 at 15:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.