From ae50b3e4ce96933bf9240765aeaf6674d1d28f45 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 30 Apr 2014 10:04:16 +0100 Subject: [PATCH] Remove title from product not purchasable message --- includes/class-wc-cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-cart.php b/includes/class-wc-cart.php index 5f19c480ea5..f451a7a1504 100644 --- a/includes/class-wc-cart.php +++ b/includes/class-wc-cart.php @@ -795,7 +795,7 @@ class WC_Cart { // Check product is_purchasable if ( ! $product_data->is_purchasable() ) { - wc_add_notice( sprintf( __( 'Sorry, "%s" cannot be purchased.', 'woocommerce' ), $product_data->get_title() ), 'error' ); + wc_add_notice( __( 'Sorry, this product cannot be purchased.', 'woocommerce' ), 'error' ); return false; }