shopp_customer_taxrule_match

filters the match result for each conditional tax rule for a tax setting.

add_filter( 'shopp_customer_taxrule_match', [callback] )

@param bool $match will be true if current evaluated conditional tax rule matches, false if it does not match
@param array $taxrule the current conditional tax rule being evaluated
@param CartTax $CartTax the CartTax tax processing object.

Description

filters the match result for each conditional tax rule for a tax setting.

Returning true from this filter will cause the conditional tax rule to match, regardless of whether or not it should match. Returning false from this filter will cause the conditional tax rule not to match.

This filter can be used to write custom conditional tax rule logic.

Example

// register filter callback
add_filter('shopp_customer_taxrule_match', 'shopp_customer_taxrule_match_filter', 10, 3);

// create filter function
function shopp_customer_taxrule_match_filter( $match, $taxrule, $CartTax ) {
    // cause the conditional tax rules to always mismatch
    return false;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar