コード例 #1
0
ファイル: class-wc-tax.php プロジェクト: grey-rsi/woocommerce
 /**
  * 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
ファイル: class-wc-tax.php プロジェクト: pelmered/woocommerce
 /**
  * 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');
 }