Re: help with if then statment for detailed description
HI GB
Thanks for the reply
I believe I am using the POS#'s from the category section I made in the ADMIN section.
I tried both
$cat_order_by variable instead of the $c.order_by variable
and get the same results.
( I just PM you a link to the page I am trying to add the button to- it is on a test server so you may need to log in to get to the page )
In the mean time this is what I currently have in the product.php
$main = "product";
$smarty->assign("main",$main);
$cat_order_by = func_query_first_cell("select order_by from $sql_tbl[categories] where categoryid = '$cat'");
$smarty->assign("cat_order_by",$cat_order_by);
and to the product.tpl
<td valign="top" width="100%">
<span>{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{ /if}</span>
{if $cat.order_by gt 4 and $cat.order_by lt 41}
{include file="buttons/sizing_help.tpl"}{/if}
As I look at this now I am wondering of this is not working because the statement I have written is not correct ( incomplete)
THanks to all for the help
Best
Scott V
__________________
scott v
x cart version 4.1.8 (Unix)
|