| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Including Templates (.tpl) in Product Descriptions, how? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Including Templates (.tpl) in Product Descriptions, how?
Anyone have an idea how can I include templates (.tpl) files in the product pages?
I want to place the template in the "Detailed Descriptions" section. I've tried "{include file="customer/main/file.tpl"} but it did not work. It just displays the text as is: "{include file="customer/main/file.tpl"} If it's not possible to include .tpl files, is it possible to do a php include in the "Detailed Descriptions"? Thanks
__________________
Version 4.0.8 Live |
|||||||
#2
|
|||||||||
|
|||||||||
You need to change your skin1/customer/main/product.tpl template.
Find this code: Code:
And change it to this code: Code:
This is untested, but should work for you.
__________________
X-cart Featured Products Manager from http://www.firetanksoftware.com - Put your products where you want, how you want. |
|||||||||
#3
|
|||||||
|
|||||||
That didn't work.
I received this error message when I visited the product pages: Fatal error: Smarty error: [in evaluated template line 90]: syntax error: unrecognized tag 'return' (Smarty_Compiler.class.php, line 564) in /home/user/websitename-www/Smarty-2.6.3/Smarty.class.php on line 1082 Thanks for the suggestion though. Anyone have any other ideas?
__________________
Version 4.0.8 Live |
|||||||
|
|||
X-Cart forums © 2001-2020
|