called for each shipped item for per item shipping calculation.

add_action('shopp_calculate_item_shipping', [callback]);

@param int $id the item's index in cart
@param Item $Item the Item object


Runs for each shipped item in the cart when CartShipping is calculated. Passed the cart index of the item and the Item object. Usually used by shipping modules in combination with the shopp_calculate_shipping action to create a set of shipping options.


add_action('shopp_calculate_item_shipping', 'my_function', 10, 2);
function my_function ( $id, $Item ) {
// do stuff

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.