Shopping Cart Software

Shopping Cart Software ClickCartPro XCS Version
corner image corner image

How do you make county/state/province entry not required?

How do you make county/state/province entry not required?

Postby lynnimak » 29 Sep 2011 11:41

I have found out how to change the county/state/province entry from a drop down box to a textbox from previous postings. I also want to make this field not required and have changed the 'required' field from 1 to 0 under khxc_formfields for gbu0accountmaint.stateprov, gbu0createaccount.stateprov etc. However an entry into this field still seems to be required when a customer creates or maintains their account. You cannot progress to checkout if this field is left blank and there is no message for the the customer to explain why.

Please could someone let me know if there is something else I need to change somewhere?
Many thanks
Lynn
lynnimak
 
Posts: 48
Joined: 02 Dec 2009 09:38

Re: How do you make county/state/province entry not required

Postby GreenbarnWeb » 29 Sep 2011 15:29

Hi Lynn,
This is hardcode in the checkout code to assume it is required.
In the code khxc-private\apps\gbu0\GBU_Checkout
Look for
Code: Select all
if (empty($address['stateprov']))  {$reqok = 0;}
remove that code.
Howard Galpin
http://www.greenbarnweb.com
http://www.clickcartpro.co.uk - UK Customised version
http://www.clickcartpro.eu.com - European Customised version
GreenbarnWeb
Site Admin
 
Posts: 1153
Joined: 29 Jul 2009 10:58


Return to Store Design Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron
corner image
Valid XHTML   Valid CSS   w3c wai aa
GreenbarnWeb.com © 2001 - 2013
corner image