shopp_ordering_items_outofstock

filters the stock check failure on ordered items before order processing.

add_filter( 'shopp_ordering_items_outofstock', [callback] )

@param bool $valid will be false if any item is out of stock in the order.

Description

filters the stock check failure on ordered items before order processing.

Example

// register filter callback
add_filter('shopp_ordering_items_outofstock', 'shopp_ordering_items_outofstock_filter');

// create filter function
function shopp_ordering_items_outofstock_filter( $valid ) {
    // prevent all failures in order processing due to out of stock items
    return true;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar