shopp_product_set_featured()

set or unset the product as a featured product.

shopp_product_set_featured ( $product, $flag )

@param int $product (required) the product id to set
@param bool $flag (optional default:false) true to set as featured, false to unset featured
@return bool true on success, false on failure

Description

set or unset the product as a featured product.

Example

// Set product 55 as a featured product
shopp_product_set_featured(55, true);

See Also

You must be logged in to post a comment.

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

Skip to toolbar