Skip to content

fix(BTI-4): use global cart for apple pay discount compatibility#461

Merged
vildanbina merged 1 commit intomasterfrom
BTI-4-fix-applepay-discount-amount-mismatch-hotfix
Apr 7, 2026
Merged

fix(BTI-4): use global cart for apple pay discount compatibility#461
vildanbina merged 1 commit intomasterfrom
BTI-4-fix-applepay-discount-amount-mismatch-hotfix

Conversation

@vildanbina
Copy link
Copy Markdown
Collaborator

  • use WC()->cart instead of standalone new WC_Cart() so discount plugin hooks fire during calculate_totals()
  • filter out zero-price items from "Buy X Get Y" rules to prevent duplication when the plugin re-adds them
  • fixes order total mismatch causing orders stuck on "Pending payment"
  • bump version to 4.7.1

@vildanbina vildanbina merged commit e6da3f1 into master Apr 7, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants