Knowledgebase
The JavaScript countries and states are not changing when a customers logs in using Safari or Chrome.
Posted by - NA - on 04 January 2011 03:56 PM
|
|||||
The issue is the internal X-Cart state/country JavaScript fields fail when being changed in Chrome/Safari (Webkit based browsers). The code below will force a refresh when the customer logs in. Here is how to do this: 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)