我正在将Magento 1.3模板移动到Magento 1.9。我将不得不修复很多小错误,但这对我来说太复杂了。
当我在网页结账时选择以访客身份购买并尝试点击链接:
<a href="javascript:void(0);" onclick="checkout.setMethod();" id="onepage-guest-register-button" type="button" class="button">weiter zum nächsten Schritt</a>
然后出现以下错误:
未捕获的TypeError:无法读取null的属性'style'
Element.Methods.hide @ prototype.js:1590
Checkout.setMethod @ opcheckout.js:103onclick @(index):277
我知道protoype.js
找不到具有特定ID的元素,但我不知道id是什么,或者我只是错了?
答案 0 :(得分:1)
我已经解决了这个问题。问题是获取显示的元素没有错误的ID。