babyewok Posted October 19, 2013 Share Posted October 19, 2013 I would like to know how I can show different info on the product page depending on the parent category. So for example, if the product is in the category called 'stationery' show 'x', else show 'y'. How can I do this from product.tpl? Link to comment Share on other sites More sharing options...
vekia Posted October 19, 2013 Share Posted October 19, 2013 in this case you have to edit product.tpl file located in your theme directory. you need to add some if conditions to check for what category product belogs - then display some content. for example: {if $product->id_category_default ==3} {l s='some content'} {/if} {if $product->id_category_default ==4} {l s='some content for category 4'} {/if} etc. 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