tpl files that break vqmod
4 posts
• Page 1 of 1
tpl files that break vqmod
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
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 3:18 pm
- Location: Philadelphia
Re: tpl files that break vqmod
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.
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: tpl files that break vqmod
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
-

Johnathan - Global Moderator
- Posts: 2879
- Joined: Thu Dec 17, 2009 7:08 pm
Re: tpl files that break vqmod
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

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18212
- Joined: Mon Jul 21, 2008 7:02 pm

4 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google Feedfetcher, stronga and 15 guests























