fix: run update_checkout on loading page 2 for physical products#2292
fix: run update_checkout on loading page 2 for physical products#2292laurelfulford wants to merge 1 commit intotrunkfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR addresses an edge case in the modal checkout flow where Transaction Details (order review totals) don’t reflect shipping costs for physical products on step 2, by forcing a WooCommerce totals refresh when transitioning from editing details (step 1) to the payment/review step (step 2).
Changes:
- Trigger
update_checkoutwhen moving into step 2 (setEditingDetails( false )) to ensure shipping/totals are recalculated and rendered.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I could not reproduce the bug... But things still work with this PR... maybe something else needed to reproduce it? |
|
Confirmed that I also can't recreate part of the issue (the transaction details not showing for a non-subscription physical product) AND that this doesn't fix the other part (the transaction details being greyed out when they do show). Closing this PR, I'll try to figure out another way. Thanks @leogermani! |

All Submissions:
Changes proposed in this Pull Request:
There's a weird edge case where the Transaction Details don't update with shipping costs if you're purchasing a physical product through the modal checkout. This PR fixes that.
How to test the changes in this Pull Request:
npm run build.Other information: