View Single Post
  #32  
Old 01-19-2008, 10:05 AM
 
chadweston chadweston is offline
 

Member
  
Join Date: Oct 2007
Location: Nottingham, UK
Posts: 14
 

Default Re: Menu with Tabs for Product page

Wow, really cool add-on, thanks.

I am having an issue however as I want to have a Warranty tab and a Shipping tab specific to each product. I wish to include a file based upon its SKU (from a code I came across from RyanDesignStudios, http://forum.x-cart.com/showthread.php?t=28266&highlight=SIFR which is well worth a look !!)

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/language.function.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.



Help would be appreciated.

Many Thanks
__________________
Welcome to my world !!
(I use version 4.1.
Reply With Quote