davidcalabuig Posted January 22, 2015 Share Posted January 22, 2015 (edited) Hi,I want to show the breadcrums on category pages but I do not want to show the breadcrumbs on product pages.Is there a variable or function in tpl for this?Thank you very much Regards Edited February 6, 2015 by calabuig (see edit history) Link to comment Share on other sites More sharing options...
parsifal Posted January 27, 2015 Share Posted January 27, 2015 I think the following "if" condition should do the trick: {if $page_name == 'category'} // Code to show breadcrumbs {/if} 2 Link to comment Share on other sites More sharing options...
ajaxthemestudios Posted January 27, 2015 Share Posted January 27, 2015 You may want to consider the following code: {if $page_name != 'product'} // Code to show breadcrumb {/if} The difference between this and the one by parsifal is that this one will show breadcrumb on all other pages EXCEPT the product pages. So in that way, it shows on category, cart, etc But if you want to show only in category pages and not show in products and other pages, then the earlier suggestion is good. All the best! 2 Link to comment Share on other sites More sharing options...
davidcalabuig Posted February 6, 2015 Author Share Posted February 6, 2015 Thanks so much for yours answers 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