shopp_rmv_product_download()

remove a product download asset

shopp_rmv_product_download ( $download )

@param int $download the product asset id
@return bool true on success, false on failure

Description

Remove a product download asset.

Example

// Lookup "My Greatest Hits" product
$Product = shopp_product('My Greatest Hits', 'name');

// Lookup "Track 01" variant
$Track1 = shopp_product_variant( 
    array(
        'product' => $Product->id,
        'option' => array(
            'Track' => 'Track 01'
        )
    ),
    'variant'
);

// Delete the product download
shopp_rmv_product_download ( $Track1->download->id );

See Also

You must be logged in to post a comment.

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

Skip to toolbar