Hide single product of LINKED PRODUCTS

[ad_1]

I dont want that OUT OF STOCK products are shown in my shop, so I have checked the “Out of stock visibility” option in the Inventory settings of WooCommerce.

On my shop page I have two products:
PRODUCT1 is a linked product (a grouped product made by PRODUCT1A and PRODUCT1B)
PRODUCT2 is a simple product

Managing their stock availability, if the products (PRODUCT1A, PRODUCT1B and PRODUCT2) are available the 2 main product (PRODUCT1 and PRODUCT2) are shown.

If I set to 0 the stock of PRODUCT2 it is not shown as expected.

If I set to 0 only the stock of PRODUCT1A then the main product (PRODUCT1) it is shown as expected, but once I click on PRODUCT1 it shows the availability of PRODUCT1B as expected but also the SOLD OUT message (and READ MORE link) of PRODUCT1A and this is not what I was expecting.

Moreover if I set to 0 also the stock of PRODUCT1B (so PRODUCT1A AND PRODUCT1B are out of stock!) then the main product (PRODUCT1) it is shown and this is not what I was expecting. Of cource when I click on PRODUCT1 it shows the SOLD OUT message (and READ MORE link) of both products (PRODUCT1A and PRODUCT1B) and this is not what I was expecting.

Is there a way/plugin to sole my issue.

Thank you.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer