You are here

function hook_commerce_cart_line_item_refresh in Commerce Core 7

Allows modules to perform additional processing to refresh an individual line item on a shopping cart order.

Prior to this hook being invoked, product line items will have already had their sell prices refreshed via the creation of a new line item for the same product being passed through Rules for calculation.

Parameters

$line_item: A line item object that should be updated as necessary for the refresh.

$order_wrapper: An EntityMetadataWrapper for the order the line item is attached to.

See also

commerce_cart_order_refresh()

1 invocation of hook_commerce_cart_line_item_refresh()
commerce_cart_order_refresh in modules/cart/commerce_cart.module
Refreshes the contents of a shopping cart by finding the most current prices for any product line items on the order.

File

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

Code

function hook_commerce_cart_line_item_refresh($line_item, $order_wrapper) {

  // No example.
}