Jump to content

Customize Specific Category Product List


Recommended Posts

Hi guys,

 

I'm trying to figure out how to make modifications to the product list in category B (delete quantity field, for example) without affecting the look of category A. 

 

What file do I need to modify? Or do I need to create a new file specifically for category B?

 

Thank you. I'm working with Prestashop 1.6

 

Have a great night/day.

 

gracenote

Link to comment
Share on other sites

So as you can see at this link:

 

https://penguinyell.com/5-custom-penguin-yell

 

I've managed to remove the sort by drop down and the grid/list options by going to global.css

 

Unfortunately, as you can see there is still text that says "sort by" and "view"... still trying to figure out how to remove this just for this one category.

 

Also, I'd like to remove the add to cart button, price, and quantity field for this specific category alone.

Link to comment
Share on other sites

 
So I tried this code for the line of text on the category page that says "Custom Penguin Yell" on the left and "There are 3 products" on the right.
 
I have it in my theme's global.css file:
.category-5 #h1.page-heading.product-listing{
display:none;
}

Unfortunately, it did not hide the page heading or product listing count. Any thoughts?

Link to comment
Share on other sites

Awesome. This removed the text. 

body.category-5 h1.page-heading{
display:none;
}

body.category-5 h1.product-listing{
display:none;
}

I also used the same technique to hide the "add to cart," quantity field, and more button. 

 

My one problem is when I hover over with a mouse, the "add to cart", quantity field, and "more" button reappear. How do I hide these? I'm guessing the same technique would do, but I'm not sure what code affects the hover.

Link to comment
Share on other sites

×
×
  • Create New...