Magento一页结帐 - 获取TypeError:checkout undefined(在opcheckout.js中) [英] Magento one page checkout- getting TypeError: checkout undefined (in opcheckout.js)

查看:72
本文介绍了Magento一页结帐 - 获取TypeError:checkout undefined(在opcheckout.js中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大约一周前,一页结帐工作正常,现在却没有。毫无疑问我有错,因为我仍然遇到与管理员后端有关的问题,我可能在处理这个问题的过程中以某种方式对此进行了犯规。

One page checkout was working properly about a week ago and now its not. I am no doubt at fault, because I was still having an issue related to the admin backend, and I probably fouled this up somehow in the process of working on that.

在任何情况下,当一个(已登录的,已注册的)用户点击一页结帐的结算信息步骤中的继续按钮时,会发生这种情况,就像没有点击该按钮一样。它不会进行下一步。错误控制台(在Firefox中)报告TypeError:checkout is undefined,它在opcheckout.js中显示第303行。

In any case, what happens is that when a (logged in, registered) user clicks on the "Continue" button in the Billing Information step of the one page checkout, its as if the button was not clicked. It doesn't proceed to the next step. And the error console (in Firefox) reports "TypeError: checkout is undefined", and it shows line 303 in opcheckout.js.

此问题与另一个发布在SO 上但是(a)一个人没有得到真正的回答( b)我没有足够高的分数来评论(或在那里添加问题)。

This problem is very similar to another one posted on SO but (a) that one isn't really answered and (b) I don't have a high enough score to comment (or add to to the question there).

虽然解决方案很棒,但我也很努力学习如何自己调试。我已经应用了许多我通过谷歌搜索找到的magento解决方案(对于其他问题),虽然它们起作用并且这是主要的,但我开始希望能够解决我自己的问题。甚至可能最终能够帮助其他人......

While a solution would be wonderful, I am also really trying to learn how to debug this myself. I have already applied many magento solutions that I've found by googling (for other problems) and, though they work and that's the main thing, I am starting to want to be able to solve my own problems. And maybe even be able to help others eventually...

所以,在这种情况下,鉴于未定义结账,我怎么能找到定义它的位置?

So, in this case, given that "checkout in undefined", how might I find where it should get defined?

推荐答案

在我的例子中, / skin / frontend / base / default / js / opcheckout。 js 文件与pspahn建议的 / skin / frontend / [yourpackage] / [yourtheme] /js/opcheckout.js 中的文件不匹配。我主题中的.js文件完全空白。将内容复制到固定的所有内容上。在此处评论可能正在搜索的其他人的可见性。

In my case, the /skin/frontend/base/default/js/opcheckout.js file did not match the one in /skin/frontend/[yourpackage]/[yourtheme]/js/opcheckout.js as pspahn suggested. The .js file in my theme was completely blank. Copying the contents over fixed everything up. Commenting here for visibility for others who might be searching.

这篇关于Magento一页结帐 - 获取TypeError:checkout undefined(在opcheckout.js中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆