示例#1
0
 /**
  * Load options.
  *
  * @access public
  */
 public static function init()
 {
     self::$precision = WC_ROUNDING_PRECISION;
     self::$round_at_subtotal = 'yes' === get_option('woocommerce_tax_round_at_subtotal');
 }
示例#2
0
 /**
  * Load options.
  *
  * @access public
  */
 public static function init()
 {
     self::$precision = wc_get_rounding_precision();
     self::$round_at_subtotal = 'yes' === get_option('woocommerce_tax_round_at_subtotal');
     add_action('update_option_woocommerce_tax_classes', array(__CLASS__, 'maybe_remove_tax_class_rates'), 10, 2);
 }
示例#3
0
 /**
  * Load options.
  *
  * @access public
  */
 public static function init()
 {
     self::$precision = wc_get_rounding_precision();
     self::$round_at_subtotal = 'yes' === get_option('woocommerce_tax_round_at_subtotal');
 }