Home Forums WoodMart support forum Show Single Attribute-missing color name in archive in some categories/product Reply To: Show Single Attribute-missing color name in archive in some categories/product

#445820

Artem Temos
Keymaster

By default, WooCommerce saves attribute terms in the name for variable products, but only if the attribute name consists of a single word. https://monosnap.com/file/HW7CN2c7YTntY02dLBfMmMxFn6KKuO
However, with custom code, we can bypass this restriction. Add it to the functions.php file in the child theme and resave some product to test

add_filter('woocommerce_product_variation_title_include_attributes', '__return_true');