Use the variable product name in the “cannot add another …” message
-
Hi,
Thanks for the plugin. It’s useful for me.But, I have a suggestion to improve it. When you select “Apply Sold individually to variations”, and the customer add a different variation to the cart, WooCommerce displays the standard message:
You cannot add another “{Variation product name}” to your cart.
This can confuse customers because there no {Variation product name} in the cart.
I think you can use the filter woocommerce_cart_product_cannot_add_another_message”, to replace the variation name by the variable name in the message.
For example, display “You cannot add another “Tshirt” to your cart. instead of “You cannot add another “Tshirt – Red” to your cart because there is no “Tshirt – Red” in the cart
- The topic ‘Use the variable product name in the “cannot add another …” message’ is closed to new replies.