How to remove filters from the product page

  • Posts: 98
  • Thank you received: 2
11 years 2 weeks ago #131385

Hello there. I set up the "sorting by" filter in the "breadcrumbs" position. When in the catalogue, it looks allright. But when I browse to the product page it looks ugly since it offer to sort something, and it's kinda strange for a user since there's only on product on the page :whistle:

What I want to do is:
1) apply the id="breadcrumbsProduct" to the filter on the product page
2) create new CSS rule:
#breadcrumbsProduct{
display: none
}

But I simply dont understand what file I have to edit and in what way? Maybe you could help me somehow. Or is there other solution?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 2 weeks ago #131415

Hi,

So you are using a module for the filters. Joomla don't really allow to make the difference between a listing and a product page. That's why this module is displayed too on the product page. You can use the component "Advanced module manager", it will allow you to remove the modules on the product pages.

Please Log in or Create an account to join the conversation.

  • Posts: 98
  • Thank you received: 2
11 years 2 weeks ago #131567

Xavier wrote: Hi,

So you are using a module for the filters. Joomla don't really allow to make the difference between a listing and a product page. That's why this module is displayed too on the product page. You can use the component "Advanced module manager", it will allow you to remove the modules on the product pages.


This module manager doesn't really make any sense (to me)
I understand that Joomla do not allow this. But HTML allows to set up an ID to the element I want to remove on a particular page. And set
display: none
in CSS

But the problem is I do not know what file to edit...

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 2 weeks ago #131587

You can set your id in the file "filter" of the view "product" via the menu Display>Views.

For the CSS you can add it as explained here:
www.hikashop.com/support/documentation/1...ize-the-display.html

Please Log in or Create an account to join the conversation.

  • Posts: 98
  • Thank you received: 2
11 years 2 weeks ago #131637

nicolas wrote: You can set your id in the file "filter" of the view "product" via the menu Display>Views.

For the CSS you can add it as explained here:
www.hikashop.com/support/documentation/1...ize-the-display.html


display: none also removes filters from the "catalogue" page. Damn it :(. I dont really get why is this so hard, why web-development with, for example, Tw Bootstrap is such easy - you can customize anything you want, but with this Joomla you gotta invent some scary constructions just to undisplay the item...

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 2 weeks ago #131658

It's hard yes, but no different with bootstrap. If you set the id for an element on all the pages and try to hide that element with CSS, you will hide it everywhere, regardless of whether you're working with bootstrap or joomla or both. You need to make sure that you only add the id when it's needed.
For example:
<?php if(@$_REQUEST=='show') echo 'my_id'; ?>

That will add the "my_id" text only when you are on the product page.

Please Log in or Create an account to join the conversation.

Time to create page: 0.084 seconds
Powered by Kunena Forum