shopp_package_item_label

filters the the label/index of the item in the package.

add_filter( 'shopp_package_item_label', [callback] )

@param string $label the label/index of the item in the package. Defaults to the Item::fingerprint().
@param Item $Item the Item object being added to the package.

Description

filters the the label/index of the item in the package.

Example

// register filter callback
add_filter('shopp_package_item_label', 'shopp_package_item_label_fltr', 10, 2);

// create filter function
function shopp_package_item_label_fltr( $label, $Item ) {
    // index in the package by checksum
    return md5(serialize($Item));
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar