View Single Post
  #1  
Old 12-20-2008, 03:36 PM
 
boswell boswell is offline
 

Member
  
Join Date: Jul 2007
Posts: 11
 

Default Conditional hiding of a language label in product.tpl

I need to hide the quantity label {$lng.lbl_quantity} in my product.tpl IF the product in question is in a specific category.

Default code in product.tpl is:
Code:
<tr> <td height="25" width="30%"> {$lng.lbl_quantity} {if $product.min_amount gt 1}<br /> <font class="ProductDetailsTitle">{$lng.txt_need_min_amount|substitute:"items":$product.min_amount} </font> {/if} </td>


But i'm confused on x-cart syntax and how to make:
Code:
{if $product.categoryid eq '532'} HIDE QUANTITY LABEL {else} DISPLAY QUANTITY LABEL AS USUAL {/if}

Could someone help flesh out the necessary code? Thanks
__________________
X-Cart Gold - 4.1.8
Reply With Quote