我想要添加js文件和自定义module.After,将它添加到我的module.Payment方法stop的布局文件中,以便work.Can有人告诉我问题出在哪里。以下是代码- custom_layout.xml
<?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>在添加了crypto js之后,它在标题中可用,但结帐页面不是working.here是截图- screenshot of console
发布于 2017-01-17 15:18:16
我认为这是一个冲突问题,所以你可以添加一组js,比如
<action method="addItem">
<type>js</type><name>custom_module/crypto.js</name>
<group>cust_js</group>
</action>尝试添加上面提到的js。这将解决冲突问题,希望它能有所帮助:)
https://stackoverflow.com/questions/41136495
复制相似问题