You are here

function hook_commerce_physical_order_volume_alter in Commerce Physical Product 7

Allows modules to alter the volume that has been determined for an order.

Parameters

&$volume: A volume value array with keys representing the total 'volume' of the order in the 'unit' specified or NULL if no volume has yet been determined.

$order: The order object whose volume is being calculated.

$unit: The unit of measurement whose corresponding cubic unit will be used for the returned volume of the order.

See also

commerce_physical_order_volume()

1 invocation of hook_commerce_physical_order_volume_alter()
commerce_physical_order_volume in ./commerce_physical.module
Determines the volume of an entire order.

File

./commerce_physical.api.php, line 113
Hooks provided by the Commerce Physical Product module.

Code

function hook_commerce_physical_order_volume_alter(&$volume, $order, $unit) {

  // No example.
}