jkmagic Posted September 5, 2010 Share Posted September 5, 2010 Hi!is there a way that i put a code somewhere and display left column to the categories i choose and hide to the others?or a second way to display the category block on the lefts at category pages i want toFor example i want o display category block to thosecategory.php?id_category=28category.php?id_category=29category.php?id_category=30category.php?id_category=31Thanks Link to comment Share on other sites More sharing options...
rocky Posted September 5, 2010 Share Posted September 5, 2010 To hide the left column for specific categories, edit header.tpl in your theme's directory and change lines 54-57 from: <!-- Left --> {$HOOK_LEFT_COLUMN} to: {if $smarty.get.id_category|intval < 28 AND $smarty.get.id_category|intval > 31} <!-- Left --> {$HOOK_LEFT_COLUMN} {/if} This will hide the left column on categories 28-31. Link to comment Share on other sites More sharing options...
jkmagic Posted September 6, 2010 Author Share Posted September 6, 2010 Rocky sorry again ,but as i said i need to display the category box,not hide.I will hide in categories block eceptions for category.phh or something like this and i need to dispaly to those i choose.Sorry didnt notice your answer.may be my question wasnt clear enough.Thanks Link to comment Share on other sites More sharing options...
rocky Posted September 7, 2010 Share Posted September 7, 2010 I'm having trouble understanding what you mean. Do you mean that you want to hide certain categories from the block? Can you provide screenshots to explain what you mean? Link to comment Share on other sites More sharing options...
gbaby Posted May 23, 2011 Share Posted May 23, 2011 Is there a way to hide the left column just on the subcategories page in PS 1.4.1? Or just to hide the category block (in the left column) on the subcategory page?This helped somewhat: http://www.prestashop.com/forums/viewthread/13879/ Link to comment Share on other sites More sharing options...
gbaby Posted May 23, 2011 Share Posted May 23, 2011 {if $page_name == 'category' AND $smarty.get.id_category != 27 AND $page_name == 'category' AND $smarty.get.id_category != 19} The problem is that this is also removing the category block on the home page & product pages where I want it displayed. Any ideas?I have 2 category pages that I don't want to have the category block displayed on as these are the 2 main category pages and contain no products, they simply list the subcategories. 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