Skip navigation
Help

hook_uc_order_product_alter

7 uc_order.api.php hook_uc_order_product_alter(&$product, $order)

Allows modules to alter order products when they're loaded with an order.

Parameters

&$product: The product object as found in the $order object.

$order: The order object to which the product belongs.

Return value

Nothing should be returned. Hook implementations should receive the $product object by reference and alter it directly.

Related topics

2 functions implement hook_uc_order_product_alter()

3 invocations of hook_uc_order_product_alter()

File

ubercart/uc_order/uc_order.api.php, line 403
Hooks provided by the Order module.

Code

function hook_uc_order_product_alter(&$product, $order) {
  $product->model = 'SKU';
}