View Single Post
  #35  
Old 01-19-2008, 12:51 PM
 
MoonDog MoonDog is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 93
 

Default Re: Menu with Tabs for Product page

chadweston,

Quote:
So, I have created folders and in them put my content SKU(whaterver it is).tpl.

I am then trying to use the include file to fetch them.

<div class="tabbertab">
<h2>Full Description</h2>
{include file="$product.productcode.tpl" }
</div>

And here is my issue. No matter how I try and escape the variable it seems to throw an error. I am new to this code, but have scoured over the internet and used the suggestions for this include (http://www.smarty.net/manual/en/lang...on.include.php)

The error, if it helps is:
Smarty error: unable to read resource: "Array.productcode.tpl" in..... etc, so it seems that it is not resolving the variable.

The most likely culprit for that error would be the period after $product.

See if this works. Change your code so it looks like this:
Code:
{assign var="SKU" value=$product.productcode} <div class="tabbertab"> <h2>Full Description</h2> {include file="$SKU.tpl" } </div>

Hope that works. Let me know if it doesn't.

- MoonDog -
__________________
X-CART Gold v4.1.8
Reply With Quote