View Single Post
  #15  
Old 12-29-2004, 05:15 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default

Quote:
I was wondering if any one knows how I can make the tabs show if that tab is need or relevant to that product so if I don't have a detailed image no tab for that will show so people don't have to waste time clicking tabs and getting no content if anyone can help me figure that out I would appreciate it.

Put simply, if the content does not exist, then don't display the tab(s).

Solution...

Wrap an IF statement around the individual tab code.

For example with upselling products...

Code:
{if $active_modules.Upselling_Products eq ""}[*]Related Products {else} {/if}

Recommended products...

Code:
{if $active_modules.Recommended_Products eq ""}[*]Recommended Products {else} {/if}

etc.

Detailed Images is slightly different...

Code:
{if $images eq ""}[*]Detailed Images {else} {/if}

So is Customer Reviews...

Code:
{if $reviews eq ""}[*]Customer Reviews {else} {/if}
__________________
xcartmods.co.uk
Reply With Quote