In Opencart 2.0.1.1, I tried to upload an OCmod configuration file with right name format .ocmod.xml
but I get the error Modification requires a unique ID code!
Official guide for modifications of Opencart 2 is missing to mention about the <code>
tag that should be included in all ocmod
configuration files
The system match this <code>
tag with previously uploaded modification files to check if it has already been uploaded or not so every time you upload a modification file you should put the id
in <code>
tag and it should be unique
So for solution you just need to add your unique modification ID between <code>HERE</code>
and put that after the <modification>
tag
like this
<?xml version="1.0" encoding="utf-8"?>
<modification>
<code>Modification ID</code>
<name>Modification</name>
<version>1.0</version>
<author>Author Name</author>
<link>http://www.author.com</link>
<file path="catalog/controller/common/home.php">
<operation>
<search><![CDATA[
Search this
]]></search>
<add position="replace"><![CDATA[
replace with this
]]></add>
</operation>
</file>
</modification>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With