parent
0bad6b3e52
commit
a70e9bbf9b
|
@ -89,6 +89,9 @@ final class WC_Cart_Session {
|
|||
// Put session data into array. Run through filter so other plugins can load their own session data.
|
||||
$session_data = array_merge( $values, array( 'data' => $product ) );
|
||||
$cart_contents[ $key ] = apply_filters( 'woocommerce_get_cart_item_from_session', $session_data, $values, $key );
|
||||
|
||||
// Add to cart right away so the product is visible in woocommerce_get_cart_item_from_session hook.
|
||||
$this->cart->set_cart_contents( $cart_contents );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue