简体   繁体   English

Magento添加到购物车不起作用

[英]Magento add to cart doesnt work

Hello i have a problem with my add to cart button in my magento theme. 您好,我的magento主题中的“添加到购物车”按钮有问题。 i have changed all theme, but it doesnt work, please any can help me? 我已经更改了所有主题,但是没有用,请任何人可以帮助我吗? i see in the console the error: 我在控制台中看到错误:

 Uncaught TypeError: Cannot read property 'submit' of undefined gabinete-ice-2x24w-magg.html:220
onclick

but too appear error in my prototype.js im put here the file prototype.js, and here the live link http://masluz.panamerik.net/gabinete-ice-2x24w-magg.html i hope can help me guys thanks! 但是在我的prototype.js中也出现错误,我将文件prototype.js和此处的实时链接http://masluz.panamerik.net/gabinete-ice-2x24w-magg.html放到这里,希望对大家有帮助!

PROTOTYPE.JS LINK: http://masluz.panamerik.net/js/prototype/prototype.js PROTOTYPE.JS链接: http//masluz.panamerik.net/js/prototype/prototype.js

When i go to checkout page to place the order have error too with prototype.js whats happend with this? 当我去结帐页面下订单时,prototype.js也有错误,这是怎么回事?

You are callling two copies of jQuery, this will cause all sorts of issues with Magento. 您正在调用jQuery的两个副本,这将导致Magento出现各种问题。

 <script type="text/javascript" src="http://masluz.panamerik.net/js/megamenu/jquery-1-7-2.js"></script>
 <script type="text/javascript" src="http://masluz.panamerik.net/js/iwd/all/jquery-1.10.2.min.js"></script>

You are using multiple version of jquery (1.7.2, 1. 1.10.2 and lastly 1.3.2). 您正在使用多种版本的jquery(1.7.2、1。1.10.2,最后是1.3.2)。 Since the last loaded version is 1.3.2 it is very much outdated and will not support many functions. 由于上次加载的版本是1.3.2,因此它已经过时了,将不支持许多功能。

Also, you are loading jquery.noconflict file before your last jquery include, hence the errors are most likely because of the conflict issues. 另外,您要在上一个jquery包含之前加载jquery.noconflict文件,因此,最有可能是由于冲突问题而导致错误。

You can try removing all other version of jquery and load noconflict.js file at the end of all the scripts. 您可以尝试删除所有其他版本的jquery,并在所有脚本的末尾加载noconflict.js文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM