Closed mattallan closed 7 months ago
I just want to confirm that the expected behavior is for the cart to still contain the original order product and the checkout to complete successfully, right?
Thanks @diegocurbelo for the review and also for asking this question!
Yes, this is correct. It's expected that the cart still contains the original order items and that the checkout completes successfully.
Fixes #537
Description
Inside subscriptions we have code that makes sure that if a cart contains a renewal item, we should make sure we're honoring the price of the subscription/renewal order and not the new price if it's been updated etc.
When the cart contains an item that no longer exists on the order, we get the following fatal errors that occur:
This PR fixes this issue by making sure we're only honoring subscription prices on cart items that still belong to the order/subscription. If the cart item cannot be found on the order, we simply return the default.
How to test this PR
trunk
if you refresh the page and you should see the above fatal errorsProduct impact