Can I OCMOD a tpl file? I have an extension that consists of tpl files and I'm trying to make OCMODs for them, but it wont take. I see the modified file in the modifications folder, and I've refreshed everything. I can't see any changes reflected. The original file is being picked up.
v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Not true.


This is the old thread regarding that... viewtopic.php?f=202&t=215092&p=770907&h ... ds#p770907
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
Then, use event handlers for core file modifications, and your own theme folder for modified template files.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.
OCMod is not a requirement. It used to be an additional feature from the core until the Event Engine was built-in. As for paid extensions, however, if a developer says that the reported issue has nothing to do with him and you believe it doesn't make sense due to an installed extension, you can either use the contact us link at the bottom of the site and request to speak with the Accounts and Billing Team after filling the form to request a refund or by creating a new service request in the Commercial Support section of the forum for a developer to review this extension for you as a custom job.Joe1234 wrote: ↑Fri Apr 29, 2022 7:31 pmIs it a requirement that extensions be able to work with OCMOD? I've contacted the developer (paid extension) and he says this issue has nothing to do with him. This doesn't make sense to me because if every other OCMOD I've made is being picked up properly and these mods are not, it seems like a an output issue with the extension to me...I don't know, you tell me. Is it opencart that automatically looks in the modifications folder for updated file, or would there be hard coded lines in the extension that would disrupt that? Is this something the developer expected to correct?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Either way, an extension author should be able to fix potential clashes or issues.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>MY CUSTOM: Test</name>
<code>MY_CUSTOM_Test</code>
<version>1.0</version>
<author>Just Me</author>
<!-- Module -->
<file path="catalog/view/theme/default/template/product/EXTENSION_NAME.tpl">
<operation error="skip">
<search><![CDATA[<?php echo $breadcrumb['text']; ?>]]></search>
<add position="replace"><![CDATA[<?php echo $breadcrumb['text']; ?>testingExtension]]></add>
</operation>
</file>
<file path="catalog/view/theme/default/template/product/product.twig">
<operation error="skip">
<search><![CDATA[{{ breadcrumb.text }}]]></search>
<add position="replace"><![CDATA[{{ breadcrumb.text }}testing]]></add>
</operation>
</file>
</modification>
v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.
You have been told already.
NO OCMod is going to find ANYTHING with a tpl extension.
What is this extension you speak of
1/ OCMOD is finding the template and modifying it with no issue, it just wont show on the front end. Do you mean that OCMOD wont find the modified file and show it?mikeinterserv wrote: ↑Sat Apr 30, 2022 12:08 amNO OCMod is going to find ANYTHING with a tpl extension.
2/ The developer directly said OCMOD will work on his extension and all the files within. And since this extension is working without template switcher extension, I figure he's made it in a way that works contrary to what you say....I don't know. He says I must be doing something wrong which also points to he expects it to work but something else is wrong with his code preventing it.
3/ I'm not quite ready to state the developer or extension since there is no way for you to see the files to see what's going on since it is not a free download. If I make no way with him or OC then I'll let it be known to see what can happen.
4/ I've looked at the first link, but I cant see how to implement that within this extension...still looking though.
I actually wouldn't even care if the extension wasn't so damn buggy causing me to overwrite my modifications every other day with the updates.
v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.
There are always first-time-to-read replies, that's for sure. It doesn't happen often but when it does ...Joe1234 wrote: ↑Sat Apr 30, 2022 2:04 amI don't know if I'm misunderstanding you or you're misunderstanding me.1/ OCMOD is finding the template and modifying it with no issue, it just wont show on the front end. Do you mean that OCMOD wont find the modified file and show it?mikeinterserv wrote: ↑Sat Apr 30, 2022 12:08 amNO OCMod is going to find ANYTHING with a tpl extension.
2/ The developer directly said OCMOD will work on his extension and all the files within. And since this extension is working without template switcher extension, I figure he's made it in a way that works contrary to what you say....I don't know. He says I must be doing something wrong which also points to he expects it to work but something else is wrong with his code preventing it.
3/ I'm not quite ready to state the developer or extension since there is no way for you to see the files to see what's going on since it is not a free download. If I make no way with him or OC then I'll let it be known to see what can happen.
4/ I've looked at the first link, but I cant see how to implement that within this extension...still looking though.
I actually wouldn't even care if the extension wasn't so damn buggy causing me to overwrite my modifications every other day with the updates.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Like the modification folder
Has your extension placed the files in the original folder OR only in the MODIFICATIONS folder.
Do you see the file here
catalog/view/theme/default/template/product/EXTENSION_NAME.tpl
or is it
system/storage/modification/catalog/view/theme/default/template/product/EXTENSION_NAME.tpl
v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.
well where your mod folder is.Joe1234 wrote: ↑Sat Apr 30, 2022 5:42 amAfter the modification the modified tpl is placed in the modifications folder only. But not that folder you have listed, my modification folder is in a directory outside of the public_html directory. And no extension I have was placed back in the original folder.
So you have no tpl file in
catalog/view/theme/default/template/product/
either before or after modification refresh ?
catalog/view/theme/default/template/product
before and after modification.
Modified file is in modification folder after modification.
v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.
Users browsing this forum: No registered users and 77 guests