I have a site that has many products with many unique colors for their products from various manufactures. I want to use attribute filters so customers can easily filter the products by color, but I don’t want to make global attributes for each colour because there would be hundreds. So instead I am using more generic colors for the global attributes, like Black, Grey, Red etc, then at the product level under the swatch settings I set the tooltip to be Antracite, Antique Cement, Cherry, etc. and then set the custom color. This works great on the product pages but at the cart, checkout, and WooCommerce emails, as well as in the orders, the product is “product name – Grey”, etc. Is there a way to use the Swatch Setting tooltip text as the attribute name for the variation instead, so it would be: “product name – Antique Cement” in all of those places?
I am using a code snippet called “WooCommerce – Fix Variation Display in Cart” with:
add_filter( ‘woocommerce_product_variation_title_include_attributes’, ‘__return_false’ );
add_filter( ‘woocommerce_is_attribute_in_product_name’, ‘__return_false’ );
This places the variation name under the title which is how I would like it to work. It also looks like a lot of the variation text has become broken. When I add a new product it looks ok, but over time it will become broken. You can add all the products to the cart then look at the cart to see what I mean. I’d really appreciate help with these issues, thanks!
Hi Stephen Jones,
Could you record me reproducing your issue using tool like this? https://www.useloom.com
It helps me to quickly figure out issue and squash it with immediately.
For the issues I am having with the variations not displaying properly in the cart, I need to try and isolate that issue more, I will work on it. My main question is if there is a way that the Swatchsettings tooltip text can be shown as the variation name in the cart, checkout, and on emails. Here are a couple of images to help illustrate:
Hello Stephen Jones,
My main question is if there is a way that the Swatchsettings tooltip text can be shown as the variation name in the cart, checkout, and on emails.
Unfortunately, this is not possible. Even WooCommerce doesn’t support any such feature.
Can I please, close the ticket now? Thanks
Would this be possible by modifying WooCommerce plugin files? Or is it completely impossible?
haha ok thank you, you can close this ticket