Knowledgebase



Replace with:

When a customer is using Chrome they receive an error that the state is required even when it is filled in.
Posted by - NA - on 04 January 2011 03:54 PM
The internal X-Cart JavaScript state selection doesn't work on some versions of X-Cart when used with Google Chrome. To use a non-AJAX login for Chrome users make the following change:

skin1/modules/Checkout_One/checkout_one.tpl:

Find this code near line 58:

{if $config.Checkout_One.co_non_ajax_login eq 'N' && $config.UA.browser ne 'Opera'}{include file="modules/Checkout_One/checkout_one_button.tpl" button_title=$lng.lbl_login style="button" href="javascript:checkoutLogin(true);"}{else}{include file="modules/Checkout_One/checkout_one_button.tpl" button_title=$lng.lbl_login style="button" href="javascript:document.authform.submit();"}{/if} {if $config.Checkout_One.co_non_ajax_login eq 'N' && !in_array($config.UA.browser, array('Opera', 'Safari'))}{include file="modules/Checkout_One/checkout_one_button.tpl" button_title=$lng.lbl_login style="button" href="javascript:checkoutLogin(true);"}{else}{include file="modules/Checkout_One/checkout_one_button.tpl" button_title=$lng.lbl_login style="button" href="javascript:document.authform.submit();"}{/if}

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: