Skip to content

Commit

Permalink
Check if taxes are enabled in ECE tax compatibility logic
Browse files Browse the repository at this point in the history
  • Loading branch information
annemirasol committed Oct 30, 2024
1 parent 9cfc896 commit 581ac32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
= 8.9.0 - xxxx-xx-xx =
* Tweak - Makes the new Stripe Express Checkout Element enabled by default.
* Dev - Add multiple unit tests for the Stripe Express Checkout Element implementation (for both frontend and backend).
* Fix - Check if taxes are enabled when applying ECE tax compatibility check.
* Fix - Corrected card brand capitalization on the My Account → Subscription page.
* Fix - Displays a specific message when an authentication error occurs during checkout for 3DS cards (shortcode version).
* Fix - Show 'Use a New Payment Method' radio button for logged in users only when card saving is enabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ public function should_show_express_checkout_button() {
( is_product() && ! $this->product_needs_shipping( $this->get_product() ) ) ||
( ( is_cart() || is_checkout() ) && ! WC()->cart->needs_shipping() )
) &&
wc_tax_enabled() &&
in_array( get_option( 'woocommerce_tax_based_on' ), [ 'billing', 'shipping' ], true )
) {
return false;
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
= 8.9.0 - xxxx-xx-xx =
* Tweak - Makes the new Stripe Express Checkout Element enabled by default.
* Dev - Add multiple unit tests for the Stripe Express Checkout Element implementation (for both frontend and backend).
* Fix - Check if taxes are enabled when applying ECE tax compatibility check.
* Fix - Corrected card brand capitalization on the My Account → Subscription page.
* Fix - Displays a specific message when an authentication error occurs during checkout for 3DS cards (shortcode version).
* Fix - Show 'Use a New Payment Method' radio button for logged in users only when card saving is enabled.
Expand Down

0 comments on commit 581ac32

Please sign in to comment.