コード例 #1
0
ファイル: Tax.php プロジェクト: BlessySoftwares/anvelocom
 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;
 }
コード例 #2
0
ファイル: Tax.php プロジェクト: forthrobot/inuvik
 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;
 }