Post by ChinmayBhatta » 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

Newbie

Posts

Joined
Wed Mar 08, 2017 7:16 pm

Post by yodapt » Sun Oct 01, 2017 7:40 pm

Template files for version 3.x are twig, not tpl.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by straightlight » Sun Oct 01, 2017 8:31 pm

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


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ChinmayBhatta » Mon Oct 02, 2017 1:26 am

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....

Newbie

Posts

Joined
Wed Mar 08, 2017 7:16 pm

Post by straightlight » Mon Oct 02, 2017 1:49 am

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


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ChinmayBhatta » Mon Oct 02, 2017 6:49 pm

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

Newbie

Posts

Joined
Wed Mar 08, 2017 7:16 pm

Post by straightlight » Mon Oct 02, 2017 9:08 pm

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


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ChinmayBhatta » Sun Feb 18, 2018 11:59 pm

OC 3.0.2.0

Newbie

Posts

Joined
Wed Mar 08, 2017 7:16 pm

Post by straightlight » Mon Feb 19, 2018 12:05 am

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


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 38 guests