Remove title from product not purchasable message

This commit is contained in:
Mike Jolley 2014-04-30 10:04:16 +01:00
parent 96507fa3f4
commit ae50b3e4ce
1 changed files with 1 additions and 1 deletions

View File

@ -795,7 +795,7 @@ class WC_Cart {
// Check product is_purchasable // Check product is_purchasable
if ( ! $product_data->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; return false;
} }