shopp_set_product_meta()

create or update a new product meta record.

shopp_set_product_meta ( $product, $name, $value, $type, $valuetype )

@param int $product (required on creation/update) product object to create/update the meta record on
@param string $name (required on update) the name of the meta entry, more specific than type
@param mixed $value (optional default: false) the value stored to the meta entry
@param string $type (optional default: meta) the type or classification of the meta data
@param string $valuetype (optional default: 'value') 'numeral' or 'value', if the value is numeric, 'numeric' will store in numeric field.
@return bool true on successful save or update, fail on failure

Description

create or update a new product meta record

This function used shopp_set_meta().

Example

// set meta data on product 25
// set the drop ship notification email address for the manufacturer
$mfg_email = 'manufacturer@example.com';

shopp_set_product_meta ( 25, 'mfg_email', $mfg_email, 'meta');

See Also

You must be logged in to post a comment.

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

Skip to toolbar