我的“继续结账”按钮丢失了,我可以采取什么步骤来诊断?
当我在购物车中时,“继续结帐”按钮丢失,我无法进一步进行结帐过程。我查看了 cart.phtml 和 $methodHtml 为空,因此查找结帐方法的比较(if ($methodHtml = $this->getMethodHtml($method))
)永远不会显示按钮。
我想知道是否有人知道我如何找出 Magento 可能出现的问题。 Onestepcheckout 已安装,但即使禁用也没有什么区别。
When I am in the shopping cart "proceed to checkout" button is missing and I can't go any further in the checkout process. I looked at cart.phtml and $methodHtml is empty so the comparison (if ($methodHtml = $this->getMethodHtml($method))
)to find checkout methods never shows the button.
I am wondering if anyone might know how I can track down what might be wrong with Magento. Onestepcheckout is installed but even when disabled it makes no difference.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
了解如何使用 IDE 调试代码。请参阅此回答。
一旦调试设置适合您,请在
isDisabled()
和isPossibleOnepageCheckout()
方法中的Mage_Checkout_Block_Onepage_Link
中设置断点,以便您可以跟踪通过什么导致按钮被隐藏。Learn how to debug through the code using an IDE. Refer to this answer.
Once you have the debugging setup working for you, set breakpoints in
Mage_Checkout_Block_Onepage_Link
in theisDisabled()
andisPossibleOnepageCheckout()
methods so that you can trace through what is causing the button to be hidden.需要更多信息,但如果这是一个覆盖模块,那么我想我可以提供帮助。
我最近遇到了这个问题,您需要确保表单控件也在新模块中重写。
例如,在 config.xml 中......
设置调试是一种痛苦,但当您开始看到正在调用什么以及从哪里调用时,这是一种乐趣。
Need more information, but you if this is an overriden module then I think I can help.
I had this recently, you need to make to make sure the form controls are rewritten in the new module as well.
For instance, in config.xml....
Set up debugging is a pain but a pleasure when you start to see what is being called and from where.