Click on Add New or select a product post type previously created
Select a WC Simple Product post type template
Select the WooCommerce tab
Click on the "Linked Products" tab
In the fields "Up - Sales", "Cross Sales" and "Grouping" mark its corresponding checkbox to hide it
Save and Publish your form
Click on Preview Form
Select different types of products and navigate to the "Linked Products" tab
Expected result: If the product type is different from "Grouped product" you should not see the "Upsells" and "Cross-sells" fields. And if the product type is "Grouped product" you should not see the "Grouping" field also.
Actual result: The fields are visible for every product type.
NOTE: Also, if the user mark all the checkbox to hide all the options in the "Linked Products" the "Linked Products" tab should not appear in the form. Otherwise, it will be a blank tab.
Steps to reproduce
Expected result: If the product type is different from "Grouped product" you should not see the "Upsells" and "Cross-sells" fields. And if the product type is "Grouped product" you should not see the "Grouping" field also.
Actual result: The fields are visible for every product type.
NOTE: Also, if the user mark all the checkbox to hide all the options in the "Linked Products" the "Linked Products" tab should not appear in the form. Otherwise, it will be a blank tab.
See screenshots below: