shopp_process_free_order

filters the test during checkout for processing free orders or not.

add_filter( 'shopp_process_free_order', [callback] )

@param bool $process will be true if the order is to be processed free of cost, and false otherwise

Description

filters the test during checkout for processing free orders or not.

This filter must return true to cause an order to be processed as a free order, and false to prevent order processing as a free order. Initially, the free order status is set by the Cart object. This status is also filtered by the shopp_free_order filter.

The difference between the two filters is:
shopp_free_order can be used to filter the free order status, which will cause free order processing to occur by default.
shopp_process_free_order can be used to filter the whether or not the free order processing will take place, regardless of the free order status.

Example

// register filter callback
add_filter('shopp_process_free_order', 'shopp_process_free_order_fltr');

// create filter function
function shopp_process_free_order_fltr( $process ) {
    // force all orders to be processed as free orders
    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