Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Including Templates (.tpl) in Product Descriptions, how?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-16-2005, 08:32 PM
 
1day2004 1day2004 is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 115
 

Default 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
Reply With Quote
  #2  
Old 10-16-2005, 10:05 PM
  kpayne's Avatar 
kpayne kpayne is offline
 

X-Adept
  
Join Date: Dec 2002
Location: Firetanksoftware.com
Posts: 469
 

Default

You need to change your skin1/customer/main/product.tpl template.

Find this code:

Code:
{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}

And change it to this code:

Code:
{if $product.fulldescr ne ""}{eval var=$product.fulldescr}{else}{eval var=$product.descr}{/if}

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.
Reply With Quote
  #3  
Old 10-18-2005, 10:26 AM
 
1day2004 1day2004 is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 115
 

Default

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:26 AM.

   

 
X-Cart forums © 2001-2020