public static function baserates($Item = null) { // Get base tax rate $base = shopp_setting('base_operations'); $BaseTax = new ShoppTax(); $BaseTax->location($base['country'], false, false); // Calculate the deduction $baserates = array(); $BaseTax->rates($baserates, $BaseTax->item($Item)); return (array) $baserates; }
public static function baserates($Item = null) { // Get base tax rate $BaseTax = new ShoppTax(); $BaseTax->location(ShoppBaseLocale()->country(), false, false); // Calculate the deduction $baserates = array(); $BaseTax->rates($baserates, $BaseTax->item($Item)); return (array) $baserates; }