shopp_product_set_price()

set the pricetag on a single product.

shopp_product_set_price ( $product, $price )

@param int $product (required) The Product id to set the price on.
@param float $price the price to be set
@return bool true on success, false on failure

Description

Set the pricetag on a single product. Use shopp_product_variant_set_price() instead for products with variants.

Example

// Set the price of $59.99 on product with id 10
shopp_product_set_price( 10, 59.99 );

See Also

You must be logged in to post a comment.

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

Skip to toolbar