Inconsistency on Product Variation Title
-
Hi. There is a filter in WooCommerce that allows shop owners to display the product attributes along side the name in a variable product. Woo takes this to default in variations with two or less attributes, to force it on variations with more attribute we can use the following:
add_filter( 'woocommerce_product_variation_title_include_attributes', '__return_true' );
So if a product has 3 attributes the name would appear like this in the Cart / CheckOut / Emails
Beautifull Apparel – M – Short Sleeve – Yellow
in “kadence-woocommerce-email-designer/templates/woo/emails/email-order-items.php”, line 78, you use the “wc_display_item_meta” function to output the item meta, which echos the attributes, so if some user is using the above filter the variation attributes became duplicated appearing along side the name and below.
Could you please use another filter to output the product name (like woocommerce_product_variation_title) that takes into account the woocommerce_product_variation_title_include_attributes?Thanks
- The topic ‘Inconsistency on Product Variation Title’ is closed to new replies.