Exemplo n.º 1
0
 function get_tax_rate()
 {
     /** Read current Configuration ***/
     require_once CLASSPATH . "shipping/" . $this->classname . ".cfg.php";
     if (intval(SHIPVALUE_TAX_CLASS) == 0) {
         return 0;
     } else {
         require_once CLASSPATH . "ps_tax.php";
         $tax_rate = ps_tax::get_taxrate_by_id(intval(SHIPVALUE_TAX_CLASS));
         return $tax_rate;
     }
 }
Exemplo n.º 2
0
 function get_tax_rate()
 {
     /** Read current Configuration ***/
     require_once CLASSPATH . "shipping/" . __CLASS__ . ".cfg.php";
     if (intval(FLEX_TAX_CLASS) == 0) {
         return 0;
     } else {
         require_once CLASSPATH . "ps_tax.php";
         $tax_rate = ps_tax::get_taxrate_by_id(intval(FLEX_TAX_CLASS));
         return $tax_rate;
     }
 }
Exemplo n.º 3
0
 /**
  * Get tax info
  */
 function get_tax_rate()
 {
     /** Read current Configuration ***/
     require_once CLASSPATH . "shipping/" . $this->classname . ".cfg.php";
     if (intval($this->getConfig("_tax_rate"))) {
         require_once CLASSPATH . "ps_tax.php";
         $tax_rate = ps_tax::get_taxrate_by_id(intval($this->getConfig("_tax_rate")));
         return $tax_rate;
     }
     return 0;
 }