Use WooCommerce wrapper instead of native functions, test if WC is active

[MAILPOET-5092]
This commit is contained in:
David Remer
2023-06-19 09:00:45 +03:00
committed by Aschepikov
parent 8b1d51fcd6
commit 190da3b0e5
2 changed files with 31 additions and 9 deletions

View File

@ -82,6 +82,22 @@ class Helper {
return null;
}
public function wcGetPriceDecimals(): int {
return wc_get_price_decimals();
}
public function wcGetPriceDecimalSeperator(): string {
return wc_get_price_decimal_separator();
}
public function wcGetPriceThousandSeparator(): string {
return wc_get_price_thousand_separator();
}
public function getWoocommercePriceFormat(): string {
return get_woocommerce_price_format();
}
public function getWoocommerceCurrency() {
return get_woocommerce_currency();
}