removes a spec/detail from a product.

shopp_product_rmv_spec ( $product, $name )

@param int $product (required) the product id.
@param string $name (required) the name of the spec to remove.
@return bool true on success, false on failure


Removes a spec/detail from a product


// load all products in category 10
$products = shopp_category_products(10);

// remove a Bundled Free spec from each product
foreach ( $products as $p ) {
    shopp_product_rmv_spec( $p->id, 'Bundled Free');

See Also

You must be logged in to post a comment.

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