Skip to content

Commit

Permalink
Ensure that tax is enabled before determining how it is calculated (#…
Browse files Browse the repository at this point in the history
…9786)

Co-authored-by: César Costa <10233985+cesarcosta99@users.noreply.github.com>
  • Loading branch information
asumaran and cesarcosta99 authored Nov 22, 2024
1 parent 986f195 commit 8b1bcda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog/as-fix-ece-tax-based-billing-address
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Ensure ECE is displayed correctly taking into account the tax settings.
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ public function should_show_express_checkout_button() {
)

// ...and billing is calculated based on billing address.
&& 'billing' === get_option( 'woocommerce_tax_based_on' )
&& wc_tax_enabled() && 'billing' === get_option( 'woocommerce_tax_based_on' )
) {
return false;
}
Expand Down

0 comments on commit 8b1bcda

Please sign in to comment.