Jump to content

How to hide products from category page


Khaito
 Share

Recommended Posts

Hi,

 

I'm trying to hide product listings from my category pages. I want to make my own custom category page, and I don't want to use default theme for that.

 

Right now I managed to remove title and left column bar, but I can't find any place in BO, positions or anywhere, to edit category page content.

 

I want to get rid of this section, marked red circle:

 

category.PNG

Share this post


Link to post
Share on other sites

13 hours ago, Sycomor said:

Hello

thanks for your answer @PrestaServicePro

i guess this will hide on all categories (good for @Khaito )

i would like to hide only on specific categories.

if you have any ideas, would be great

many thanks

A quick work around can be to check which page you are at and depending of this handle your code.

For example:

    {if $page.page_name == 'index'}
    {* IF PAGE NAME EQUAL TO index DISPLAY THIS *}
        <h1>
            <a href="{$urls.base_url}">
                <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
            </a>
        </h1>
    {else}
    {* IF PAGE NAME NOT EQUAL TO index DISPLAY THIS *}
        <a href="{$urls.base_url}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
        </a>
    {/if}

 

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More