View Single Post
  #14  
Old 01-08-2009, 02:21 PM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default Re: help with if then statment for detailed description

Hi Ashley,

Thanks for the reply.
I am definitely over my head a bit here and not exactly sure of what I am doing
What I was hoping to do was call the product.tpl
and inside that I have placed this

{if $c.order_by}It exists: {$c.order_by}{else}No it doesn't exist{/if}
{if $c.order_by gt 4 and $c.order_by lt 41}{/if}
{include file="buttons/sizing_help.tpl"}

so that when the category pages with POS 4 thru 41 were called the button/sizing.tpl would be called and it would then display the button I have made.

If I understand Jon ( see above) reply to me I might be able to do this if I query the category variables in the product.php and assign to smarty.

The line
$smarty->assign('customer/category', 'category');
include ("customer/main/product.tpl");

is my latest failed attempt of things I have placed in the product.php page.

Hope you now understand what I am trying to do. I am not wed to this solution if you have a better one I am interested in that

Thanks again

Best

Scott V
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote