NooTheme Premium WordPress Theme › Forums › Mebla › Woocommerce hide invisible variations on shop page filters.
Tagged: attributes, variations, visibility, woocommerce
- This topic has 6 replies, 2 voices, and was last updated 4 years, 6 months ago by
Jackie.
-
AuthorPosts
-
4 years, 6 months ago #1074277
Hi everyone.
You can see from my screenshot http://prntscr.com/nou0su that variation is not visible on simple product page, but in shop page user can filter by this deactivated attribute http://prntscr.com/nou292.
I want to hide all this hidden variations from search filter, but recent used hook is not working:
“add_filter( 'woocommerce_hide_invisible_variations', '__return_true' );”
May be you can send me any other hook example, or something else ?
Waiting for your reply, thanks.
4 years, 6 months ago #1074369Hi.
Thank you for contacting us.
Please give us the wp-admin login page. We need to access your site dashboard and check the config.
Thanks.
4 years, 6 months ago #1074370Hi.
Thank you for contacting us.
Please give us the wp-admin login page. We need to access your site dashboard and check the config.
Thanks.
4 years, 6 months ago #1074595This reply has been marked as private.4 years, 6 months ago #1074989Hi again.
1. With the product attribute, it still displays on the product details page. https://prnt.sc/nttinq
2. To hide variation from search filter, please go to widget management/ shop sidebar and remove the widget as you don't want to show on the filter. https://prnt.sc/nttjhs
Please check it again.
Thanks.
4 years, 6 months ago #1074999Hi Jackie! No it is not a solution. I want to show attribute filter widget, but want to hide attributes that are hidden on the product page by that checbox https://prnt.sc/nou0su. Because, if user will filter products by this attribute, he will see not actual products.
For example:
Page shows all items with ceramic material, but if you will open product page, you will see that there is no any record about material, because this attribute is innactive.
Product page example: https://teradom.ru/product/naruzhnaya-chast-vstroennogo-smesitelya-noken-forma-100140118-n199999401/
4 years, 6 months ago #1075043Hi again.
Sorry for the mistake, If you don't want to show the attribute to the details page and don't want to use that attribute for shop filter page, you should remove the value on this attribute. That is a simple way to remove that attribute on the product. https://prnt.sc/nu9xr9
Please check it again.
Thanks.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.