Why the attributes of one product can be seen in one of its variants, and no attributes are visible in the second identical product?
Hello. I wanted to ask why the attributes of one product can be seen in one of its variants, and no attributes are visible in the second identical product? I have checked it several times and the product settings are exactly the same. I need to see the attributes every time. Now they are displayed in one product and not visible in the other.
Hello
Try in file functions.php of the current wp theme add next code :
add_filter('woocommerce_product_variation_title_include_attributes',function($should_include_attributes, $product){ return true; },10,2);
Great, works! thank you very much and best regards 🙂