WC_DISCOUNT_ROUNDING_MODE half down
This commit is contained in:
parent
1f3365f206
commit
ad6c173757
|
@ -160,6 +160,7 @@ final class WooCommerce {
|
||||||
$this->define( 'WC_VERSION', $this->version );
|
$this->define( 'WC_VERSION', $this->version );
|
||||||
$this->define( 'WOOCOMMERCE_VERSION', $this->version );
|
$this->define( 'WOOCOMMERCE_VERSION', $this->version );
|
||||||
$this->define( 'WC_ROUNDING_PRECISION', 4 );
|
$this->define( 'WC_ROUNDING_PRECISION', 4 );
|
||||||
|
$this->define( 'WC_DISCOUNT_ROUNDING_MODE', 2 );
|
||||||
$this->define( 'WC_TAX_ROUNDING_MODE', 'yes' === get_option( 'woocommerce_prices_include_tax', 'no' ) ? 2 : 1 );
|
$this->define( 'WC_TAX_ROUNDING_MODE', 'yes' === get_option( 'woocommerce_prices_include_tax', 'no' ) ? 2 : 1 );
|
||||||
$this->define( 'WC_DELIMITER', '|' );
|
$this->define( 'WC_DELIMITER', '|' );
|
||||||
$this->define( 'WC_LOG_DIR', $upload_dir['basedir'] . '/wc-logs/' );
|
$this->define( 'WC_LOG_DIR', $upload_dir['basedir'] . '/wc-logs/' );
|
||||||
|
|
Loading…
Reference in New Issue