- Posts: 424
- Thank you received: 11
we want the compare not to be shown in an specific category.
- BluepointWebdesign
-
Topic Author
- Offline
Less
More
9 years 11 months ago #252513
by BluepointWebdesign
-- 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
-- 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.
9 years 11 months ago #252549
by nicolas
Replied by nicolas on topic we want the compare not to be shown in an specific category.
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; }
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.
- BluepointWebdesign
-
Topic Author
- Offline
Less
More
- Posts: 424
- Thank you received: 11
9 years 11 months ago #252590
by BluepointWebdesign
Replied by BluepointWebdesign on topic we want the compare not to be shown in an specific category.
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.
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.
9 years 11 months ago #252593
by nicolas
Replied by nicolas on topic we want the compare not to be shown in an specific category.
Hi,
It should be possible with a bit more CSS.
Try something like that:
.hikashop_product_listing_XXX .hikashop_compare_zone{ display:none; }
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.
- BluepointWebdesign
-
Topic Author
- Offline
Less
More
- Posts: 424
- Thank you received: 11
9 years 11 months ago #252655
by BluepointWebdesign
Replied by BluepointWebdesign on topic we want the compare not to be shown in an specific category.
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.
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.
9 years 11 months ago #252661
by nicolas
Replied by nicolas on topic we want the compare not to be shown in an specific category.
Hi,
I'm not sure what you're talking about. Could you provide a link to the page you're talking about ?
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.
- BluepointWebdesign
-
Topic Author
- Offline
Less
More
- Posts: 424
- Thank you received: 11
9 years 11 months ago #252731
by BluepointWebdesign
Replied by BluepointWebdesign on topic we want the compare not to be shown in an specific category.
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.
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.
Please Log in or Create an account to join the conversation.
- BluepointWebdesign
-
Topic Author
- Offline
Less
More
- Posts: 424
- Thank you received: 11
9 years 11 months ago #252815
by BluepointWebdesign
Replied by BluepointWebdesign on topic we want the compare not to be shown in an specific category.
Update!!
The link is now: hieruwuitvaart.incunopra.nl/direct-regel...itvaart-ondernemer-1
The link is now: hieruwuitvaart.incunopra.nl/direct-regel...itvaart-ondernemer-1
Please Log in or Create an account to join the conversation.
9 years 11 months ago #252785
by nicolas
Replied by nicolas on topic we want the compare not to be shown in an specific category.
Hi,
Like for the others, you can use CSS to hide that:
Like for the others, you can use CSS to hide that:
Code:
.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.184 seconds