shopp_ordering_empty_cart

filter the order validation failure on empty cart.

add_filter( 'shopp_ordering_empty_cart', [callback] )

@param bool $valid will be false if the order does not validate because the cart is empty

Description

filter the order validation failure on empty cart.

Returning true from this filter will allow the order through processing, even with an empty cart.

Example

// register filter callback
add_filter('shopp_ordering_empty_cart', 'shopp_ordering_empty_cart_filter');

// create filter function
function shopp_ordering_empty_cart_filter( $valid ) {
    // override failure
    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