shopp_vat_countries

filters the lookup table of two-digit alpha country codes for countries using inclusive sales tax.

add_filter( 'shopp_vat_countries', [callback] )

@param array $countries lookup table of two-digit alpha country codes for countries using inclusive sales tax.

Description

filters the lookup table of two-digit alpha country codes for countries using inclusive sales tax.

Example

// register filter callback
add_filter('shopp_vat_countries', 'shopp_vat_countries_filter');

// create filter function
function shopp_vat_countries_filter( $countries ) {
    // if the US ever goes to inclusive tax
    // we'd need to add it
    if ( ! in_array('US', $countries) ) $countries[] = 'US';
    return $countries;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar