Post by elsewhere » Tue Feb 28, 2012 6:08 am

so, i spent the better part of the day hardcoding what should have been a simple drag and drop vqmod.

For anyone just getting into theming, please keep in mind that if a tpl file loads any other tpl (not sure about other file types) using a php include, you will break vqmods ability to load and alter that page.

just putting it out there

Newbie

Posts

Joined
Mon Feb 06, 2012 11:18 pm
Location - Philadelphia

Post by uksitebuilder » Wed Feb 29, 2012 4:42 am

php include, require, include_once or require_once are not compatible with vqmod regardless of whether it is a tpl or php or any other file type.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Johnathan » Wed Feb 29, 2012 11:53 am

uksitebuilder wrote:php include, require, include_once or require_once are not compatible with vqmod regardless of whether it is a tpl or php or any other file type.
Not true, based on Qphoria's post here:
http://forum.opencart.com/viewtopic.php?f=21&t=42461

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Qphoria » Wed Feb 29, 2012 1:15 pm

Johnathan wrote:
uksitebuilder wrote:php include, require, include_once or require_once are not compatible with vqmod regardless of whether it is a tpl or php or any other file type.
Not true, based on Qphoria's post here:
http://forum.opencart.com/viewtopic.php?f=21&t=42461
correct

Tho once the full path is correct, you will likely need to add a line to your vqmod script to convert it to a vqmod line.

In the example from the link

Code: Select all

require 'catalog/view/theme/<themename>/template/product/product_options.tpl'
would need to be modified to

Code: Select all

require($vqmod->modCheck('catalog/view/theme/<themename>/template/product/product_options.tpl'));
then you could use vqmod with that file

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 57 guests