Xml Vqmod不';不要更改文件
安装vqmod后,创建一个测试xml文件,将header.twig文件中的所有“a”更改为“b”。但什么也没发生 我用谷歌搜索了这个问题,但还是解决不了。在开始这个问题之前我做了什么:Xml Vqmod不';不要更改文件,xml,opencart,vqmod,Xml,Opencart,Vqmod,安装vqmod后,创建一个测试xml文件,将header.twig文件中的所有“a”更改为“b”。但什么也没发生 我用谷歌搜索了这个问题,但还是解决不了。在开始这个问题之前我做了什么: 已将最后一个vqmod(2.6.4)上载到站点的根目录(Opencart版本3.0.3.2) 通过运行/install/install.php安装 仔细检查了index.php和admin/index.php文件中的更改(两个文件都包含vqmod所做的更改) 制作简单的xml文件“replace demo.xml
用b代替a
1
您应该使用OCMOD
您的文件应该是:
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name>Replace a with b</name>
<code>Replace-a-with-b</code>
<version>v1.0</version>
<author>Author</author>
<link><![CDATA[Your full link]]></link>
<file path="catalog/view/theme/default/template/common/header.twig">
<operation info="replace a with b">
<search><![CDATA[a]]></search>
<add position="replace"><![CDATA[
b
]]></add>
</operation>
</file>
</modification>
文件应压缩并具有名称xxxxxxxxxxxx.ocmod.zip
在搜索标签中不要留下空格。然后可以使用默认的OC安装程序安装它。
安装ocmod后,您必须刷新修改并清除商店管理员中的缓存。使用Grammarly等工具改进您的写作。谢谢!我将尝试在以后提交之前更好地验证我的文本。谢谢!你真是帮了我的忙。我读到了ocmod和vqmod之间的区别。现在我知道该用什么了。再次感谢。