Community Forums

tpl files that break vqmod

Template support & advice for OpenCart v1.x

tpl files that break vqmod

Postby elsewhere » Mon Feb 27, 2012 5:08 pm

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
elsewhere
 
Posts: 11
Joined: Mon Feb 06, 2012 10:18 am
Location: Philadelphia

Re: tpl files that break vqmod

Postby uksitebuilder » Tue Feb 28, 2012 3:42 pm

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.
ImageImageImageImageImage
ImageImageImageImageImageImageImageImageImageImage
Image
User avatar
uksitebuilder
 
Posts: 6261
Joined: Thu Jun 09, 2011 10:37 am
Location: United Kindgom

Re: tpl files that break vqmod

Postby Johnathan » Tue Feb 28, 2012 10:53 pm

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:
viewtopic.php?f=21&t=42461
Image
ImageImageImageImageImageImageImageImageImage
User avatar
Johnathan
Global Moderator
 
Posts: 4364
Joined: Thu Dec 17, 2009 2:08 pm

Re: tpl files that break vqmod

Postby Qphoria » Wed Feb 29, 2012 12:15 am

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:
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
User avatar
Qphoria
Administrator
 
Posts: 19228
Joined: Mon Jul 21, 2008 2:02 pm
Donate to Qphoria


Return to Template Support

Who is online

Users browsing this forum: No registered users and 19 guests

Hosted by Arvixe Web Hosting