<customer_logged_out>
<reference name="head">
<!-- For a JS in the js folder -->
<action method="removeItem"><type>js</type><name>iwd/opc/checkout.js</name> </action>
<action method="removeItem"><type>js</type><name>iwd/opc/extend.js</name> </action>
</reference>
</customer_logged_out>
1 回答
我知道这是一个老问题,但我偶然发现了同样的问题,我使用了mt-divas主题,它也使用了像你的网站一样的/iwd/opc/checkout.js .
当用户未被记录并且不允许以结账方式结账时,出现错误“无法读取属性'geoCountry'为null” . 在这种情况下,当您尝试在未登录的情况下进行结帐时,您将在/ onestepcheckout站点上看到登录表单 . opc.js已加载但无法访问某些数据 .
解决方案在用户未登录时从站点中删除js:
在iwd_opc.xml或local.xml中