-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: use Woo's cart fee for covering transaction fees #2820
Conversation
368ec8e
to
07bb3f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works exactly as described, and I love this change because it clarifies the addition of the fee on top of the subtotal to both the customer and the admin. I also verified that the fee is included in the total populated by our custom receipt emails, so I see no reason to get this change deployed ASAP.

includes/reader-revenue/woocommerce/class-woocommerce-cover-fees.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
# [2.13.0-alpha.2](v2.13.0-alpha.1...v2.13.0-alpha.2) (2023-12-22) ### Bug Fixes * newsletters Lists indentation ([#2797](#2797)) ([1af3c23](1af3c23)) * **ras:** remove modal checkout logic ([#2781](#2781)) ([6aad17d](6aad17d)) * use Woo's cart fee for covering transaction fees ([#2820](#2820)) ([fded027](fded027)) ### Features * add media partners module ([#2753](#2753)) ([70f7dcb](70f7dcb)) * **donation:** additional receipt email template variables ([#2799](#2799)) ([0c9c373](0c9c373)) * force option to enble retries of failed payments ([#2808](#2808)) ([f8d35ec](f8d35ec)) * give editors permission for restricted content ([#2806](#2806)) ([64d7817](64d7817))
🎉 This PR is included in version 2.13.0-alpha.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [2.13.0](v2.12.2...v2.13.0) (2024-01-08) ### Bug Fixes * alpha fixes ([#2835](#2835)) ([49efd8b](49efd8b)) * newsletters Lists indentation ([#2797](#2797)) ([1af3c23](1af3c23)) * **ras:** remove modal checkout logic ([#2781](#2781)) ([6aad17d](6aad17d)) * use Woo's cart fee for covering transaction fees ([#2820](#2820)) ([fded027](fded027)) ### Features * add media partners module ([#2753](#2753)) ([70f7dcb](70f7dcb)) * don’t send OTP via preauth flow when signing up for newsletter ([#2795](#2795)) ([686af03](686af03)) * **donation:** additional receipt email template variables ([#2799](#2799)) ([0c9c373](0c9c373)) * force allow subscription switching ([#2784](#2784)) ([ae7523f](ae7523f)) * force option to enble retries of failed payments ([#2808](#2808)) ([f8d35ec](f8d35ec)) * give editors permission for restricted content ([#2806](#2806)) ([64d7817](64d7817)) * **my-account:** support edit address ([#2733](#2733)) ([92d5778](92d5778)) * remove commenting from engagement tab ([#2726](#2726)) ([f51c7bc](f51c7bc))
🎉 This PR is included in version 2.13.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Refactors the "cover fee" strategy to use
WC()->cart->add_fee()
instead of modifying the order total directly.This PR also changes the UI to show the fee through the order review table and and no longer modify the top summary value. This consolidates how we handle additional values added to the order (coupons, fees, and taxes excluded from the total).
How to test the changes in this Pull Request:
Other information: