【发布时间】:2021-04-19 02:14:54
【问题描述】:
全新安装的 Magento 2.4.x + 主题,但有一些与快速结帐相关的问题,如下图红框区域所示。
表单缺少一些元素,例如名字、姓氏等。
当我比较周围的东西时,它应该有它。我错过了一些设置吗?
另外,当我在控制台上查看时,我看到了一些我不熟悉的 javascript 错误,如下所示
*edit - 我忘记添加的另一个错误
Uncaught ReferenceError: Unable to process binding "afterRender: function(){return oscAddress.fieldAfterRender(element.dataScope) }"
Message: oscAddress is not defined
Uncaught ReferenceError: Unable to process binding "foreach: function(){return { data:elems,as:'element'} }"
Message: Unable to process binding "if: function(){return element.visible() }"
Message: Unable to process binding "ifnot: function(){return (element.input_type =='checkbox'|| element.input_type =='radio') }"
Message: Unable to process binding "template: function(){return $parent.fieldTemplate }"
Message: Unable to process binding "afterRender: function(){return oscAddress.fieldAfterRender(element.dataScope) }"
Message: oscAddress is not defined
我对 Magento 上的前端堆栈不是很熟悉,所以我不知道我需要做什么。
有什么建议吗?我错过了一些服务器/代码设置吗?或者管理员设置?
我已经尝试刷新缓存等,但问题仍然存在。
另外,我已经更改为 Luma / 默认主题,但问题仍然存在。所以,我想知道是否有什么我错过了。
PS - 我已经按照文档满足了安装 Magento 的要求,例如 PHP 版本、elasticsearch 版本等。所以,我想知道是否有什么我错过了。
谢谢。 :)
【问题讨论】:
标签: javascript knockout.js magento2