Post by JNeuhoff » Fri Jan 17, 2020 12:59 am

@IP_CAM : 3rd party extensions should really use OpenCart's event handlers, in most cases there is no need for XML-based notations for core file modifications.

XML (Extensible Markup Language) is meant to be a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. It wasn't designed to be a programming language.

MHC Web Design
Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * TrustPilot Reviews * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by tsloc » Fri Jan 17, 2020 1:03 am

Hello,

Many thanks for your quick reply!

I just realized that i could update to latest vqmod version 2.6.4 so I just did that.

OK, the I see. I have been looking on this integrated vqmod solution and I will proceed with that. I just have some questions about how it works and what I need to do in my shop...

So, right now I´m using as you now vqmod. If I will go over to this solution with integrated instead, what do I need to think about regarding the old details? Do I still running the old vqmod together with the new solution? Do I need to move current files to a new destination folder?

I´m quite newbie on this details but I will try to do my best so it gets done the best way...

New member

Posts

Joined
Thu Feb 09, 2017 7:15 am

Post by IP_CAM » Fri Jan 17, 2020 1:06 am

Integrated VqMod places it's cached Files in the same Place as OcMod does.
And technically, Integrated VqMod Cache will then automatically be handled
like OcMod Cache Content, and cleared out too, since Integrated VqCache Content
resides in the same Database Table Section.

PS: Just about every VqMod could be rewritten into an OcMod easy, if one really cares,
to have it all coded in the same way: 3 simple changes are required per section, that's it!
VqMOD:

Code: Select all

<file name="catalog/controller/product/category.php"> 	 (HERE!)
<operation error="log">
<search position="replace"><![CDATA[ 	(HERE!)
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/category.tpl')) {
]]></search>
<add><![CDATA[	(and HERE!)
if (!$this->data['categories']&& !$this->data['products']) { 
---
OCMOD:

Code: Select all

<file path="catalog/controller/product/category.php">
<operation error="log">
<search><![CDATA[
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/category.tpl')) {
]]></search>
<add position="replace"><![CDATA[
if (!$this->data['categories']&& !$this->data['products']) { 
Last edited by IP_CAM on Fri Jan 17, 2020 1:34 am, edited 3 times in total.

I don't use Forum Mail, to reach me, contact: jti@jacob.ch
-
Demoversion OpenCart LIGHT v.1.5.6.5
http://www.bigmax.ch/
1'500+ FREE OC Extensions - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
-
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by JNeuhoff » Fri Jan 17, 2020 1:13 am

Also, only one should be used, either Qphoria's VQmod, or the Integrated VQmod. If you go for the Integrated VQmod, then make sure to remove Qphoria's vqmod (except for the 'vqmod/xml' folder!), also restore the original 'index.php' and 'admin/index.php' files.

MHC Web Design
Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * TrustPilot Reviews * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by IP_CAM » Fri Jan 17, 2020 2:03 am

@JNeuhoff: Just a question, it would probably be good to know,
if those integrated 'vqmodded' oc_modifications will be visible and editable
like OcMods, Users could then make sure, to get and use the matching tools.
But since I don't use it, I just don't know ... :laugh:
Ernie

https://www.opencart.com/index.php?rout ... d%20Editor

I don't use Forum Mail, to reach me, contact: jti@jacob.ch
-
Demoversion OpenCart LIGHT v.1.5.6.5
http://www.bigmax.ch/
1'500+ FREE OC Extensions - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
-
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by JNeuhoff » Fri Jan 17, 2020 2:51 am

IP_CAM wrote:
Fri Jan 17, 2020 2:03 am
@JNeuhoff: Just a question, it would probably be good to know,
if those integrated 'vqmodded' oc_modifications will be visible and editable
like OcMods, Users could then make sure, to get and use the matching tools.
But since I don't use it, I just don't know ... :laugh:
Ernie
All extensions, whether VQmod or OCmod, whether stored in the DB, or the 'system' folder, or the 'vqmod/xml' folder, are listed in the admin backend under 'Extensions > Modifications'. See sample screenshot.

Attachments

Screenshot_2020-01-16_18-46-40.png

OCmod/VQmod listing - Screenshot_2020-01-16_18-46-40.png (91.37 KiB) Viewed 69 times


MHC Web Design
Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * TrustPilot Reviews * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by tsloc » Fri Jan 17, 2020 10:34 am

I want to thank you guys for explaining and pointing me to the right direction. I will have a look on this.

I appreciate your help!

Best regards from a interested but not skilled Opencart user.

New member

Posts

Joined
Thu Feb 09, 2017 7:15 am
Who is online

Users browsing this forum: No registered users and 3 guests