Remove title from product not purchasable message
This commit is contained in:
parent
96507fa3f4
commit
ae50b3e4ce
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue