shopp_product_addon()

retrieve a specific addon Price object.

shopp_product_addon ( $addon )

@param mixed $variant the id of the variant, or array('product'=>int, 'option' => array('addonmenu'=>'optionname') ) to specify addon by product id and option
@return Price Price object of the addon or false on error

Description

Retrieve a specific addon Price object.

Example

// lookup Addon by product id and option
$Addon = shopp_product_addon(array( 'product' => 130, 'option' => array('Special' => 'Embroidered') ) );

// lookup Addon by id
$Addon = shopp_product_addon(302);

See Also

You must be logged in to post a comment.

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

Skip to toolbar