Forums / General Questions / Need to verify customers shipping address STATE before allowed to checkout

Need to verify customers shipping address STATE before allowed to checkout

Views: 530

Results 1 to 3 of 3
20 Apr 2015, 4:51 PM
#1
kwright avatar

kwright

Zen Follower

Join Date:
Nov 2004
Posts:
355
Plugin Contributions:
0

Need to verify customers shipping address STATE before allowed to checkout

Greetings All,

I have a new ZC store that I imported customer data from an older non ZC store. The problem is the customers address STATE information is missing. :(

The interesting things is ZC still allows checkout even though there is no STATE in the shipping address. The end results, other then not having a complete address, is the sales tax is not being included because of the missing state.

I would like to add some sort of check to see if the STATE is missing during the checkout process and require that the customer corrects this within their address book before they can complete the checkout process.

Suggest how I could do this! :D

Thanks

Experience is what you get when you don’t get what you want…

21 Apr 2015, 1:42 AM
#2
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Need to verify customers shipping address STATE before allowed to checkout

You should be using the TABLE_ADDRESS_BOOK entry_zone_id

FYI
Those correspond to TABLE_ZONES values

21 Apr 2015, 6:30 PM
#3
kwright avatar

kwright

Zen Follower

Join Date:
Nov 2004
Posts:
355
Plugin Contributions:
0

Re: Need to verify customers shipping address STATE before allowed to checkout

bislewl:

You should be using the TABLE_ADDRESS_BOOK entry_zone_id

FYI
Those correspond to TABLE_ZONES values

Thanks bislewl,

I was able to rebuild the address_book table with the correct entry_country_id and entry_zone_id from the old store data. Took a bit of time, over 6000 customers, most from 2 different countries. Don't want to do that again!:D

Experience is what you get when you don’t get what you want…