diff --git a/changelog.txt b/changelog.txt index 76ac4d2a5c..6e2c6f1210 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,7 @@ *** Changelog *** = 9.5.0 - xxxx-xx-xx = +* Dev - Implements WooCommerce constants for the tax statuses. * Fix - Fixes the listing of payment methods on the classic checkout when the Optimized Checkout is enabled. * Fix - Fixes the availability of WeChat Pay when the Optimized Checkout is enabled on the block checkout. Removes it from the classic/shortcode checkout to avoid issues. * Dev - Renames all references to "Smart Checkout" and "Single Payment Element" (and "SPE") to "Optimized Checkout" (and "OC"), following the feature rebranding. diff --git a/includes/payment-methods/class-wc-stripe-express-checkout-helper.php b/includes/payment-methods/class-wc-stripe-express-checkout-helper.php index 087d3125be..6623bda545 100644 --- a/includes/payment-methods/class-wc-stripe-express-checkout-helper.php +++ b/includes/payment-methods/class-wc-stripe-express-checkout-helper.php @@ -1,5 +1,7 @@ get_tax_status() !== 'none'; + return $product->get_tax_status() !== ProductTaxStatus::NONE; } // Cart or checkout page: the cart is taxable if any item in the cart @@ -742,7 +744,7 @@ private function is_product_or_cart_taxable() { $cart_item_key ); - if ( 'none' !== $product->get_tax_status() ) { + if ( ProductTaxStatus::NONE !== $product->get_tax_status() ) { return true; } } diff --git a/readme.txt b/readme.txt index d63d8a283a..046fb4a042 100644 --- a/readme.txt +++ b/readme.txt @@ -165,6 +165,7 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o **Internal Changes and Upcoming Features** +* Dev - Implements WooCommerce constants for the tax statuses. * Feature - Work to support Optimized Checkout * Feature - Work to support Amazon Pay * Dev - Splits the code coverage GitHub Actions Workflow into two separate actions