Print Page | Close Window

State Required not working

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=5673
Printed Date: 30-November-2024 at 12:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: State Required not working
Posted By: lcameron
Subject: State Required not working
Date Posted: 18-July-2013 at 11:38pm
We are trying to make State field required when checking out for Australian customers. I have chedk the control panel and there does not seem to be an option to make it mandator and have also gone into /pc/onepagecheckoutJS.asp and added the Australia state code ie:

var CountriesRequireStateCode="US, CA, AU"

However on checkout, we still are not prompted for a state. Am I missing somewhere it needs to go?



Replies:
Posted By: Greg Dinger
Date Posted: 18-July-2013 at 11:49pm
The original code is this:
var CountriesRequireStateCode="US, CA, "
 
You did this:
var CountriesRequireStateCode="US, CA, AU"
 
It appears you missed the trailing comma.
 
You may also want this:
var CountriesRequireZipCode="US, CA, GB, AU, "


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: lcameron
Date Posted: 19-July-2013 at 4:02am
Thanks so much! You wouldn't know how to make the Shipping Phone Number mandatory?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net