“添加到购物车”按钮在magento的产品视图页面中无效

时间:2015-03-19 12:08:14

标签: magento

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

所以我们使用了这个扩展名:product-delivery-check-by-zip-code magento extension

我们得到了此扩展所需的内容。但使用此扩展程序后,产品上的“添加到购物车”按钮

查看页面无效,产品图片也不像以前一样缩放。

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

应用\设计\前端\默认\默认\模板\ techinflo \ checkavailability \ availability.phtml

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

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

请帮我找到解决方案。

3 个答案:

答案 0 :(得分:0)

这个问题与可行性无关。按钮“添加到购物车”调用JS方法提交相应的表单。但是,您在该页面上有一些JS问题可以阻止任何JS执行 - 可能是由于jQuery不兼容或其他原因。查看您的浏览器控制台以查看所有错误

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依赖函数,如图像缩放。

答案 1 :(得分:0)

在我的情况下,通过解开“合并JavaScript文件”(系统>配置>开发人员)来解决它

答案 2 :(得分:0)

执行以下操作

web/unsecure/base_url
web/secure/base_url
From http://localhost/magento2community/
to http://127.0.0.1/magento2community/
相关问题