原型与magento中的其他jquery插件冲突

时间:2013-12-14 18:56:41

标签: jquery jquery-plugins magento-1.7 prototypejs prototype

我正在使用magento 1.7.0.2,其原型版本为1.7,我正在使用一些插件来达到要求。

我将所有插件放在prototype.xml下的page.xml中。

<action method="addJs"><script>prototype/prototype.js</script></action>

<action method="addJs"><script>jquery/jquery-1.7.2.min.js</script></action> 
<action method="addJs"><script>jquery/jquery.noconflict.js</script></action>
<action method="addJs"><script>jquery/jquery_slider.js</script></action>
<action method="addJs"><script>jquery/slider.js</script></action>   
<action method="addJs"><script>jquery/global.js</script></action>
<action method="addJs"><script>jquery/jquery.jcarousel.pack.js</script></action>

我在header.phtml中放置了plugin.js

现在我遇到了很多问题。 Add to cart button无效,checkout not loading。当我运行我的网站时,它显示了很多错误,如

Uncaught TypeError: Object [object Object] has no method 'attachEvent' prototype.js:6483
Uncaught TypeError: Object [object Object] has no method 'attachEvent' prototype.js:6491

Uncaught TypeError: Object [object Object] has no method 'attachEvent' prototype.js:6483
Uncaught TypeError: Object [object Object] has no method 'dispatchEvent' prototype.js:6599
Uncaught TypeError: Cannot set property '_renderMenu' of null

我试图解决这个问题。就像我把所有必要的plugins before prototype.js放在一起,之后我放了noConflict.js文件。 It workedNo errors were showing. Add to cart button started workingcheckout started loading

但问题出现了。 Like most of the plugins stopped working.我尝试了很多,但无法解决这个问题。所以,如果你们可以提供帮助。

0 个答案:

没有答案
相关问题