set the pricetag on an addon.

shopp_product_addon_set_price ( $addon, $price )

@param int/Price $addon (required) The priceline id to set the price on, or the Price object to change.  If Price object is specified, the object will be returned, but not saved to the database.
@param float $price the price to be set
@return bool/Price false on failure, true if Price saved, else the modified Price object.


Set the pricetag on an addon.


// Get the variant Price object for product with variants
// Services: Gift-wrapping
$Price = shopp_product_variant( array('product' => 12, 
    'option'=>array('Services'=>'Gift-wrapping')), 'addon' );

// Set the regular addon pricetag to $0.50
shopp_product_addon_set_price( $Price->id, 0.50 );

See Also

You must be logged in to post a comment.

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