mmsh Posted July 13, 2011 Share Posted July 13, 2011 hi,ps_product table from database has no id_category... how to access the matching product id_category from product.tpl? Thanks Link to comment Share on other sites More sharing options...
mmsh Posted July 13, 2011 Author Share Posted July 13, 2011 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 More sharing options...
mmsh Posted July 13, 2011 Author Share Posted July 13, 2011 ahahah noooo sorry... it was completely wrong...but the reference is correctmade 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now