"ADD TO CART"按钮在 magento 的产品视图页面中不起作用



我们希望客户在产品视图页面上输入邮政编码,以查找该邮政编码是否可用。

所以我们使用了这个扩展:通过邮政编码magento扩展进行产品交付检查

我们通过这次延期得到了我们需要的东西。但使用此扩展后,产品上的"添加到购物车"按钮

查看页面不工作,产品图像也没有像以前那样缩放。

这似乎是在产品视图页面上显示的文件

app\design\frontend\default\default\template\techinflo\checkavailability.phtml

availability.phtml代码:http://pastebin.com/YpuwTkFS

演示:http://demo1.kidsdial.com/index.php/electronics/24-widescreen-flat-panel-lcd-monitor.html

请帮我找到解决方案。

这个问题与可用性无关。按钮"添加到购物车"调用JS方法来提交相应的表单。然而,该页面上存在一些JS问题,可能是由于jQuery不兼容或其他原因,导致无法执行任何JS。看看你的浏览器控制台,看看所有错误

TypeError: jQuery(...).dcSocialShare is not a function intel-core-2-extreme-qx9775-3-20ghz-retail.html:727:0
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. jquery-1.8.3.min.js:2:0
TypeError: jQuery(...).viewPC is not a function em0113.js:372:5
TypeError: jQuery(...).csslider is not a function intel-core-2-extreme-qx9775-3-20ghz-retail.html:486:0
TypeError: jQuery.easing[jQuery.easing.def] is not a function jquery.themepunch.plugins.min.js:69:81
TypeError: jQuery(...).ajaxForm is not a function em_ajaxcart.js:275:8

并解决它们。这还应该恢复所有其他依赖JS的功能,如图像缩放。

在我的案例中,它是通过取消勾选"Merge JavaScript Files"(系统>配置>开发人员)

来解决的

执行以下

web/unsecure/base_url
web/secure/base_url
From http://localhost/magento2community/
to http://127.0.0.1/magento2community/

最新更新