2016-12-14 18 views
0

我想添加js文件以及自定义模块。添加它后,我的module.Payment方法的布局文件停止工作。可以有人告诉我什么是问题。 这里是代码 - custom_layout.xml用magento中的自定义模块添加js文件后,结帐页面不工作

 <?xml version="1.0"?> 
    <layout version="0.1.0"> 
    <default> 
    <reference name="head"> 
    <action method="addJs"><script>custom_module/crypto.js</script> 
    </action> 
    </reference> 
    </default> 
    </layout> 

config.xml中

<frontend> 
    <layout> 
    <updates> 
    <ideal> 
    <file>custom_layout.xml</file> 
     </ideal> 
    </updates> 
    </layout> 
    </frontend> 

之后加入加密JS,它是在头可用,但结帐页面是不是working.here是screenshots- screenshot of console

screenshot of non clickable checkout page

回答

1

我认为它conflic t问题,所以你可以添加一组js像

<action method="addItem"> 
<type>js</type><name>custom_module/crypto.js</name> 
<group>cust_js</group> 
</action> 

尝试添加如上所述的js。这将解决冲突问题,希望其帮助:)

相关问题