we want the compare not to be shown in an specific category.

  • Posts: 410
  • Thank you received: 9
  • Hikaserial Subscription Hikashop Business
8 years 1 month ago #252513

-- HikaShop version -- : 2.64
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.7

Hello,

We are developing a websit with multiple vendors and different category's. But for a specific main category we don't want the compare function to work. If we turn it on. it will be shown on all products. But for the products in one main category with multiple sub category's we don't want the compare to work. Can anyone tell me how to do this?

Thanks
Mark

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 1 month ago #252549

Hi,

Each products listing has a class with the id of the category. So you could just add custom CSS which would hide the compare function for these categories and not the others.
Something like that:
.hikashop_product_listing_XXX .hikashop_compare_checkbox, .hikashop_product_listing_XXX .hikashop_compare_button{ display:none; }

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

  • Posts: 410
  • Thank you received: 9
  • Hikaserial Subscription Hikashop Business
8 years 1 month ago #252590

Hello,
Thank you for the solutions. The checkbox and button are gone in that particular category, tha't is really great, but i can not figure out how to get the label: compare product not to be shown in this category, it does not have any function anymore.. please can you help?
Can not find it!

Thanks.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 1 month ago #252593

Hi,

It should be possible with a bit more CSS.
Try something like that:
.hikashop_product_listing_XXX .hikashop_compare_zone{ display:none; }

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

  • Posts: 410
  • Thank you received: 9
  • Hikaserial Subscription Hikashop Business
8 years 1 month ago #252655

Hello Nicolas,

This peace of css code i have now to not show the compare checkbox in the listing.
.hikashop_category_listing_30 .hikashop_compare_checkbox, .hikashop_category_listing_30 .hikashop_compare_button {display:none;}
But i cannot find the compare_zone or class where i can set the <label for="hikashop_listing_chk_#">Vergelijk product </label> on the display none? HOpe you can help.

Thanks.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 1 month ago #252661

Hi,

I'm not sure what you're talking about. Could you provide a link to the page you're talking about ?

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

  • Posts: 410
  • Thank you received: 9
  • Hikaserial Subscription Hikashop Business
8 years 1 month ago #252731

Hello Nicolas.

The link is on this page: hieruwuitvaart.incunopra.nl/uitvaart-beg...itvaart-ondernemer-1
in the product box you see the label text. vergelijk product. (see image)
The checkbox and also the button are now on display: none. That i managed. :)
But i really can not find a way in css to put the label on none for this category listing.

Attachments:

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

  • Posts: 410
  • Thank you received: 9
  • Hikaserial Subscription Hikashop Business
8 years 1 month ago #252815

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 1 month ago #252785

Hi,

Like for the others, you can use CSS to hide that:

.hikashop_product_listing_XXX label[for^="hikashop_listing_chk_"]{ display:none; }

The following user(s) said Thank You: BluepointWebdesign

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

Time to create page: 0.069 seconds
Powered by Kunena Forum