You are here

function hook_commerce_cart_product_remove in Commerce Core 7

Rules event hook: allows modules to react to the removal of a product from a shopping cart order.

Parameters

$order: The cart order object the product was removed from.

$product: The product that was removed from the cart.

$quantity: The quantity of the product line item removed from the cart.

$line_item: The product line item that was deleted to remove the product from the cart.

File

modules/cart/commerce_cart.api.php, line 274
Hooks provided by the Cart module.

Code

function hook_commerce_cart_product_remove($order, $product, $quantity, $line_item) {

  // No example.
}