shopp_product_set_spec()

set a detail/spec on a product.

shopp_product_set_spec ( $product, $name, $value )

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

Description

Set a detail/spec on a product

Example

$bravia = 10;  // Sony Bravia Product ID

$name = 'Video Signals';
$value = '1080/24p (HDMI™ only), '.
         '1080/60i, '.
         '1080/60p (HDMI™ / Component), '.
         '720/60p, '.
         '480/60i, '.
         '480/60p';

// Set this spec on the Bravia
shopp_product_set_spec ( $bravia, $name, $value )

$name = 'Power Consumption (in Operation) max';
$value = '142W';

// Set this spec on the Bravia
shopp_product_set_spec ( $bravia, $name, $value )

See Also

You must be logged in to post a comment.

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

Skip to toolbar