View Single Post
  #32  
Old 01-10-2009, 11:16 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: help with if then statment for detailed description

Adapting previous code slightly, here's how I would do do it.

In product.php

FIND:

$smarty->assign("product",$product_info);

BEFORE add:

Code:
$product_info['cat_order_by'] = func_query_first_cell("select order_by from $sql_tbl[categories] where categoryid = '" . (intval($cat) > 0 ? $cat : intval($product_info['categoryid'])) . "'");

In product.tpl

Code:
{if $product.cat_order_by gt 4 and $product.cat_order_by lt 41} {include file="buttons/sizing_help.tpl"} {/if}
Reply With Quote