Magento checkout.setMethod() : Uncaught TypeError: Cannot read property 'style' of null

Magento checkout.setMethod() : Uncaught TypeError: Cannot read property 'style' of null

我正在将 Magento 1.3 模板移动到 Magento 1.9。我将不得不修复很多小错误,但是这个对我来说太复杂了。

当我在页面结账时选择以访客身份购买并尝试点击 link:

<a href="javascript:void(0);" onclick="checkout.setMethod();" id="onepage-guest-register-button" type="button" class="button">weiter zum nächsten Schritt</a>

然后出现如下错误:

Uncaught TypeError: Cannot read property 'style' of null

Element.Methods.hide @ prototype.js:1590

Checkout.setMethod @ opcheckout.js:103onclick @ (index):277

我知道 protoype.js 在那一侧找不到具有特定 ID 的元素,但我不知道 ID 是什么,还是我错了?

我解决了这个问题。问题是显示 none 的元素有错误的 id。