View Single Post
  #20  
Old 01-02-2005, 11:45 AM
 
soleag soleag is offline
 

Member
  
Join Date: Mar 2004
Posts: 16
 

Default

Yup same problem here. I had to lose the IF statements also in order to get the other tabs to show.

Quote:
Furthermore; i like to add a extra tab where i can put a full
description/overview for the product.
Anyone who can point me in the right direction?

I just did this last night. I'm a newb at X-Cart but it worked for me. If there's a better way please post it.

In product.tpl,

AFTER
Code:
<a name="tabs"></a> <ul id="tablist">

ADD
Code:

AFTER:
Code:
{/if} {if $reviews eq ""}[*]Customer Reviews {else} {/if} [/list]<DIV id="tabcontentcontainer">

ADD:
Code:
<div id="sc0" class="tabcontent"> {include file="customer/main/overview.tpl" } </div>



Now create a new file called "overview.tpl" and save the following into skin1/customer/main/overview.tpl.

Code:
{* $Id: overview.tpl,v 1.6.2.2 2004/12/10 13:14:52 max Exp $ *} <table width="100%" border="0"> <tr> <td><SPAN class=> {if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if} </SPAN></td> <td></td> </tr> </table>

You can edit this file to change the look of the box and add product titles, images whatever. You can also edit the tabs.js file and change it so the overview tab shows automatically on the page.

Hope that helps.
__________________
X-Cart 4.0.9: Development Mode
Reply With Quote