gpt4 book ai didi

javascript - .js 文件修改不适用于 ocmod opencart

转载 作者:行者123 更新时间:2023-11-29 16:45:31 32 4
gpt4 key购买 nike

<file path="catalog/view/javascript/common.js">
<operation>
<search><![CDATA['add': function(product_id, quantity) {]]></search>
<add position="replace">
<![CDATA['add': function(product_id, m, quantity) {
alert('ok');
quantity = m*quantity;
]]>
</add>
</operation>

这是我的 xml,我在 ocmod.log 中也没有收到错误,请帮助

最佳答案

您无法使用 ocmod 或 vqmod 修改客户端文件:

css & js files - These files are rendered at the browser level, not at the server level, so vQmod has no effect on these. You can, however, create new files and use vQmod to alter the tpl files to point to these new css/js files. Or you can put <style> and <script> tags directly into the tpl file using vQmod.

关于 vQmod: https://github.com/vqmod/vqmod/wiki/About-vQmod

关于javascript - .js 文件修改不适用于 ocmod opencart,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42018337/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com