Post by Qphoria » Mon Oct 03, 2011 11:41 am

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)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Johnathan » Mon Oct 03, 2011 9:08 pm

Good to know.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by themeburn » Mon Oct 24, 2011 8:50 pm

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.

Image
OpenCart themes


User avatar
New member

Posts

Joined
Fri Apr 29, 2011 8:01 pm

Post by d_koev » Sun Mar 11, 2012 6:34 pm

Thanks for the tips, Q! I'll change this too in my themes where it is used.

Уеб дизайн и SEO услуги от metaGraphics Design Studio
Check my ShopperLand Premium theme
Check my ModernStore Premium theme


New member

Posts

Joined
Thu Jan 14, 2010 8:03 pm

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore
Who is online

Users browsing this forum: No registered users and 30 guests