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
Template files for version 3.x are twig, not tpl.
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
Also ensure to use the latest version of VQMod.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thank you all for the suggestions.
1. Oops! verion 3 is twig. Thanks. Changed .tpl to twig, but the issue still persists.
<?xml version="1.0" encoding="utf-8"?>
<modification>
<code>remove_compare_1.2.1</code>
<name>Remove compare buttons</name>
<version>1.2.1</version>
<author>abcd</author>
<link>http://website.com</link>
<file path="catalog/view/theme/default/template/extension/module/{bestseller,featured,latest,special}*.twig">
<operation>
<search><![CDATA[<button type="button" data-toggle="tooltip" title="{{ button_compare }}" onclick="compare.add('{{ product.product_id }}');"><i class="fa fa-exchange"></i></button>]]></search>
<add position="replace"><![CDATA[]]></add>
</operation>
</file>
</modification>
2. Tried to install VQMOD 2.6 for Opencart 3, but installation itself gives 500 internal error. If VQMOD, that will still work for me.
I am still struck....
1. Oops! verion 3 is twig. Thanks. Changed .tpl to twig, but the issue still persists.
<?xml version="1.0" encoding="utf-8"?>
<modification>
<code>remove_compare_1.2.1</code>
<name>Remove compare buttons</name>
<version>1.2.1</version>
<author>abcd</author>
<link>http://website.com</link>
<file path="catalog/view/theme/default/template/extension/module/{bestseller,featured,latest,special}*.twig">
<operation>
<search><![CDATA[<button type="button" data-toggle="tooltip" title="{{ button_compare }}" onclick="compare.add('{{ product.product_id }}');"><i class="fa fa-exchange"></i></button>]]></search>
<add position="replace"><![CDATA[]]></add>
</operation>
</file>
</modification>
2. Tried to install VQMOD 2.6 for Opencart 3, but installation itself gives 500 internal error. If VQMOD, that will still work for me.
I am still struck....
Are you using the latest version of VQmod?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I found out that twigs cannot be modified using ocmod. okay, what about rest files.
https://github.com/opencart/opencart/issues/5716
Why am I not able to see the list in Modification ?
If it is not showing, atleast an error, will help in in debugging, but silent empty modification list is not helping
https://github.com/opencart/opencart/issues/5716
Why am I not able to see the list in Modification ?
If it is not showing, atleast an error, will help in in debugging, but silent empty modification list is not helping
Ok, you're using ocmod and not vqmod. Now, which OC version are you using?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Ensure to have followed these steps regarding the modification folder: viewtopic.php?f=202&t=201745#p713479
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 38 guests