Plugin Support
miemie
(@miemie)
Hi @fantasyprints,
In some cases, WooCommerce doesn’t show the attributes in the product name https://www.screencast.com/t/iU3bq77n
Please try to add the below snippet (How to add custom code?):
add_filter( ‘woocommerce_product_variation_title_include_attributes’, ‘__return_true’, 99 );
Regards,
Egl
(@egletiere)
Hi!
I had the same issue and the snippet fixed it. Thanks!
Plugin Support
miemie
(@miemie)
Dear @egletiere,
We’re glad that our snippet can help you fix your issue
Regards,
Hi There
Found with XStore Theme the snippet fix didn’t work I asked the Theme builder and they came back with below wonder if any suggestions.
We tried to find the solution that could allow us to add it from snippets but with no success.
such actions like (‘wooco_before_components’, ‘wooco_before_wrap’) don’t work so it is better to ask plugin’s author why it is so.
Not working example (but it should):
add_action(‘wooco_before_wrap’, function() {
add_filter(‘woocommerce_product_variation_title_include_attributes’, ‘__return_true’);
}, 999);`
For now, we added a filter directly in the plugins/wpc-composite-products-premium/wpc-composite-products.php ( https://prnt.sc/CnkbFhDLIHzN ) but it will be lost once you update that plugin so keep that line for yourself
add_filter(‘woocommerce_product_variation_title_include_attributes’, ‘__return_true’);