OCMOD Is not showing up in Modifications
Posted: Sun Oct 01, 2017 7:38 pm
I created a ocmod with the following code.
-------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Remove compare buttons</name>
<version>1.2.1</version>
<link>http://mysite.com</link>
<author>abcf</author>
<code>remove_compare</code>
<file path="catalog/view/theme/default/template/extension/module/{bestseller,featured,latest,special}*.tpl">
<operation>
<search><![CDATA[<button type="button" data-toggle="tooltip" title="<?php echo $button_compare; ?>" onclick="compare.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-exchange"></i></button>]]></search>
<add position="replace"><![CDATA[]]></add>
</operation>
</file>
</modification>
-------------------------------------------
I created an empty folder called upload and zipped install.xml and upload folder into mod.ocmod.zip when i upload it , It uploads works fine. However, when I go to the Modifications page, I do not see it in the list.
I am facing exactly same issue as mentioned in the github.
https://github.com/opencart/opencart/issues/5984.
Tried with the example given there with <code> tag, but no luck
The solution given there didn't work for me.
Appreciate, if someone can help
-------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Remove compare buttons</name>
<version>1.2.1</version>
<link>http://mysite.com</link>
<author>abcf</author>
<code>remove_compare</code>
<file path="catalog/view/theme/default/template/extension/module/{bestseller,featured,latest,special}*.tpl">
<operation>
<search><![CDATA[<button type="button" data-toggle="tooltip" title="<?php echo $button_compare; ?>" onclick="compare.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-exchange"></i></button>]]></search>
<add position="replace"><![CDATA[]]></add>
</operation>
</file>
</modification>
-------------------------------------------
I created an empty folder called upload and zipped install.xml and upload folder into mod.ocmod.zip when i upload it , It uploads works fine. However, when I go to the Modifications page, I do not see it in the list.
I am facing exactly same issue as mentioned in the github.
https://github.com/opencart/opencart/issues/5984.
Tried with the example given there with <code> tag, but no luck
The solution given there didn't work for me.
Appreciate, if someone can help