Thread: Template mod
View Single Post
  #7  
Old 09-28-2007, 03:55 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Template mod

The {if} statement is MUCH easier, and it is always better to edit the templates than mess with the PHP

To hide the left column for the product detail page, you would use this:

{if $main ne "product"}
column code here
{/if}

You can use multiple {if} statements to hide it from different pages...for example, if you want to also hide it from the cart:

{if $main ne "cart" and $main ne "product"}
column code
{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote