Jump to content

[Solved] Hide Right Column Only In The Product_List


Martijnsb

Recommended Posts

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 by Martijnsb (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...