shopp_ordering_no_shipping_cost

filters the order validation failure on no shipping cost.

add_filter( 'shopp_ordering_no_shipping_cost', [callback] )

@param bool $valid will be false if the order does not validate because the shipping costs have been added

Description

filters the order validation failure on no shipping cost.

This filter will be passed false if shipping costs are $0, and the order hasn’t been marked for free shipping. Returning true from this filter will allow order processing, despite no shipping cost.

Example

// register filter callback
add_filter('shopp_ordering_no_shipping_cost', 'shopp_ordering_no_shipping_cost_filter');

// create filter function
function shopp_ordering_no_shipping_cost_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