Is there an existing issue for this?
Current Behavior
There appears to be an issue causing duplicated shipping methods during the checkout process. Based on my testing, this seems to originate from Magento’s handling of cart updates while a PayPal Express Checkout session is active.
I’m not sure whether this behavior also occurs in a clean Magento setup or only in a customized environment.
Expected Behavior
Shipping methods should remain consistent and not duplicate, even if the cart contents are updated in another session or tab.
Steps To Reproduce
- Add one product to the cart.
- Go to the cart page and start PayPal Express Checkout.
- In another browser tab, add one or more additional products to the cart.
- Return to the PayPal checkout page and refresh it.
Environment
- OpenMage: 20.13.0
- php: 8.3
Anything else?
