kegrah2 Posted June 3, 2012 Share Posted June 3, 2012 OK, so I am much more front end design and code, and definently a PHP begginer, so please excuse my ignorance. I have added a simple line of text under the price on each product page. No problem. The issue is I need this line of text to only show for products in specific categories. So I am looking for something like IF Category 1-3 then display "lorem ipsum" or the opposite of that for categories that I need it to not show. If anyone has an idea for a resolution any help would be greatly appreciated! Thanks in advance! Link to comment Share on other sites More sharing options...
bellini13 Posted June 4, 2012 Share Posted June 4, 2012 The category Id is stored in a smarty variable id_category_current. So you could do something like {if $id_category_current==1 or $id_category_current==3} lorem ipsum {else} opposite {/if} 1 Link to comment Share on other sites More sharing options...
kegrah2 Posted June 10, 2012 Author Share Posted June 10, 2012 Thanks! Exactly what I was looking for. I am also looking to do this with the manufacturer, so if certain manufacturer than display. Do you know what the variable is for that? Is there a list somewhere of these? Link to comment Share on other sites More sharing options...
bellini13 Posted June 11, 2012 Share Posted June 11, 2012 {if $product->id_manufacturer==1 or $product->id_manufacturer==3} lorem ipsum {else} opposite {/if} 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