shopp_free_order

filters the free order status.

add_filter( 'shopp_free_order', [callback] )

@param bool $isfree true if the total cost of the contents of the order add up to 0

Description

filters the free order status.

Example

// register filter callback
add_filter('shopp_free_order', 'shopp_free_order_filter');

// create filter function
function shopp_free_order_filter( $isfree ) {
    // prevent free orders
    if ( $isfree ) return false;

    return $isfree;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar