Jump to content

product.tpl how to access id_category?


Recommended Posts

maybe

$product->id_category_default



???

but it's strange...'cause if i write

{if $product->id_category_default >= 15 && $product->id_category_default <= 50}
      // ... do something (also a simple text or href...)
       {/if}


it doesn't work... what's wrong??

Link to comment
Share on other sites

ahahah noooo sorry... it was completely wrong...but the reference is correct
made confusion with numbers and operators....a number never can't be at the same time <= 15 and >= 50 ahahahha
:-)

{if $product->id_category_default <= 15 or $product->id_category_default >= 50}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...