1. Home
  2. Knowledge Base
  3. WooCommerce Quick View Pro
  4. Developer Documentation

How to change the WooCommerce add to cart success message in Quick View

When you're using WooCommerce Quick View Pro, customers can add products to the cart from the quick view lightbox. The lightbox closes automatically and they will see a WooCommerce add to cart success message - ""[Product Name]" has been added to your cart." This article explains how to change the success message.

WooCommerce Quick View Add to Cart Success Message

The Quick View Pro displays the same WooCommerce add to cart success message as the rest of your store. As a result, you can change the text in your entire store, and this will also change the Quick View success message. Keep reading to learn how.

Please note: The below instructions are aimed at developers. If you don't have a developer who can implement this for you, we recommend posting a job on Codeable where their pre-approved WordPress experts will send you a quote.

We've partnered with Codeable to provide our customers with expert help if required.

WooCommerce has a filter that you (or your developer) can use to change the text of the  message - wc_add_to_cart_message_html. This will change the WooCommerce add to cart success message wording throughout your store, including the quick view lightbox.

For example, you can use:

add_filter( 'wc_add_to_cart_message_html', function( $message, $products, $show_qty ) {
    $message = __( 'Product added, yay!', 'my-text-domain' );
    return $message;
}, 10, 3 );

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.