shopp_rmv_order_line_download()

remove a download asset from an order line-item

shopp_rmv_order_line_download ( $order, $line )

@param int $order the order id from which to remove the download asset
@param int $line the order line item from which to remove the download asset
@return bool true on success, false on failure

Description

remove a download asset from an order line-item

Example

$purchases = shopp_order_lines( 10 );

// strip out the download assets from order 10
foreach ( $purchases as $i => $Purchased ) {
    if ( 'Download' == $Purchased->type ) {
        shopp_rmv_order_line_download( 10, $i );
    }
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar