A Note to Theme makers...
5 posts
• Page 1 of 1
A Note to Theme makers...
I noticed a few theme makers are splitting off the options and other bits into separate tpl files. Then using include/require to include them into the overall page. This is fine but may I ask for a slight change.
The method you use to include them is:
This causes problems for vQmod scripts that need to alter parts of the page because it uses a relative path to the product.tpl file instead of a relative path to the controller.
please instead use:
This will resolve the issues.
Current known themes with this issue: shoppica and two other ones I've run into (i forget the names)
The method you use to include them is:
- Code: Select all
require 'product_options.tpl';
This causes problems for vQmod scripts that need to alter parts of the page because it uses a relative path to the product.tpl file instead of a relative path to the controller.
please instead use:
- Code: Select all
require 'catalog/view/theme/<themename>/template/product/product_options.tpl'
This will resolve the issues.
Current known themes with this issue: shoppica and two other ones I've run into (i forget the names)

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

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

Re: A Note to Theme makers...
Qphoria wrote:I noticed a few theme makers are splitting off the options and other bits into separate tpl files. Then using include/require to include them into the overall page. This is fine but may I ask for a slight change.
The method you use to include them is:
- Code: Select all
require 'product_options.tpl';
This causes problems for vQmod scripts that need to alter parts of the page because it uses a relative path to the product.tpl file instead of a relative path to the controller.
please instead use:
- Code: Select all
require 'catalog/view/theme/<themename>/template/product/product_options.tpl'
This will resolve the issues.
Current known themes with this issue: shoppica and two other ones I've run into (i forget the names)
Thanks for the hint. We will change all of the require statements in our theme, as you suggest.
-

themeburn - Posts: 28
- Joined: Fri Apr 29, 2011 12:01 pm
Re: A Note to Theme makers...
Thanks for the tips, Q! I'll change this too in my themes where it is used.
- d_koev
- Posts: 70
- Joined: Thu Jan 14, 2010 12:03 pm
Re: A Note to Theme makers...
Hmm...noted it 

-

MarketInSG - Posts: 2603
- Joined: Wed Nov 16, 2011 3:53 am
- Location: Singapore
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 16 guests
























