View Single Post
  #6  
Old 08-02-2006, 02:46 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default

Quote:
Originally Posted by balinor
{if $categories[cat_num].order_by < 500}
Well, that didn't work for me... I'm using PhilJ's vflyout cateories, and I don't use categories.tpl -- the var is not working for me...

Any idea what var I should use?

The .tpl I need to change contains:
So does this mean incoming categories are renamed c.category ?

I tried {if $c.category[order_by] lt 900 }{/if} -- no good
I tired {if $c.category.order_by lt 900 }{/if} -- no good
I tired {if $c.categories[order_by] lt 900 }{/if} -- no good
I tired {if $c.categories.order_by lt 900 }{/if} -- no good

Am I putting the {/if} in th right place? if I were flowcharting this, I'd say, "if the category POS is lt 900, then continue on, otherwise, you're stuck -- don't pass go. I've been staring at the screen too long, I can't think straight...

This smarty thing is 3 steps forward 5 steps back. Ugh.

Anyone? My goal is to trap any category with a POS greater than 900 to not show up in the categories list.

Your assistance is appreciated.

Thanks,

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote