woocommerce_remove_cart_item_from_session with $key and $values

@helgatheviking

$this isn’t needed - WC()->cart to access cart class.
This commit is contained in:
Mike Jolley 2015-02-11 12:30:54 +00:00
parent 039c496354
commit 9afa2848d7
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ class WC_Cart {
// Flag to indicate the stored cart should be update
$update_cart_session = true;
wc_add_notice( sprintf( __( '%s has been removed from your cart because it can no longer be purchased. Please contact us if you need assistance.', 'woocommerce' ), $_product->get_title() ), 'error' );
do_action( 'woocommerce_cart_item_removed_from_session', $_product, $values );
do_action( 'woocommerce_remove_cart_item_from_session', $key, $values );
} else {