Martijnsb Posted February 20, 2013 Share Posted February 20, 2013 (edited) Dear all, I am working on my webshop and using PS version 1.5.3. Now I want to hide the right column but only on the product list page. I did find some codes to hide it on the whole category section. But I only want to hide it on the categories which includes an active product list. Not on my main categories or eventual subcategories which don't have any products in it. Your help would be really appreciated! Martijn Edited February 20, 2013 by Martijnsb (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted February 20, 2013 Share Posted February 20, 2013 Can you provide the link to the code you found already? Link to comment Share on other sites More sharing options...
Martijnsb Posted February 20, 2013 Author Share Posted February 20, 2013 http://www.prestashop.com/forums/topic/171659-hidedisable-left-and-right-columns-on-the-basis-of-current-page/ Found it over here. It works though. But it deletes the right column in the whole category section, which I don't want. Just want it to disappear on the pages where the product list is displayed. Link to comment Share on other sites More sharing options...
doubleD Posted February 20, 2013 Share Posted February 20, 2013 http://www.prestasho...f-current-page/ Found it over here. It works though. But it deletes the right column in the whole category section, which I don't want. Just want it to disappear on the pages where the product list is displayed. If i correctly understood what you need... In your footer.tpl file replace <div id="right_column" class="column grid_2 omega"> {$HOOK_RIGHT_COLUMN} </div> with {if $page_name = 'category' && $nb_products == 0} <div id="right_column" class="column grid_2 omega"> {$HOOK_RIGHT_COLUMN} </div> {/if} This will hide right column if there are products in the category, and will show right column in the empty category. Link to comment Share on other sites More sharing options...
Martijnsb Posted February 20, 2013 Author Share Posted February 20, 2013 Works perfect! Thank you very much! Solved 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