after installing vqmod, a create test xml file to change all "a" with "b" in header.twig file. But nothing happens.
I googled this problem but still couldn't solve it. What I did before start this question:
My simple xml file:
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Replace a with b</id>
<version>1.0</version>
<file name="catalog/view/theme/default/template/common/header.twig">
<operation info="replace a with b">
<search position="replace"><![CDATA[
a
]]></search>
<add><![CDATA[
b
]]></add>
</operation>
</file>
</modification>
And:
Any ideas where did I go wrong? It's just doesn't work.
You should use OCMOD.
Your file should be:
<?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>
File should be zipped and have the name xxxxxxxxxxxxx.ocmod.zip In search tag do not leave spaces. Then you can install it using default OC installer. After you install your ocmod you must refresh modification and clear the cache in your shop admin.