Hiding attributes if “Visible on the product page” is unticked?

[ad_1]

I’m looking for a way to hide the variation swatches if the checkbox for “Visible on the product page” is unticked in the product attributes. I know they are hidden if I untick “Use for variations”, but this is not an option as I need this to stay ticked.

I’d prefer to not use a CSS-solution to hide the swatches, but I’m not entirely sure how I would apply the logic in PHP.

Thanks in advance for the assistance!

 

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