-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Issue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for development
Description
Extension attributes in quote billing or shipping addresses cause Magento\Quote\Model\Cart\CartTotalRepository::get to throw this error:
"PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Quote\Model\Cart\Totals::setExtensionAttributes() must be an instance of Magento\Quote\Api\Data\TotalsExtensionInterface, instance of Magento\Quote\Api\Data\AddressExtension given
This happens for example when /carts/mine/payment-information is requested while modifying billing address during checkout.
Here's a similar issue with adding extension attributes to CartItemInterface: #3640
Preconditions
- Magento 2.1.3 to 2.1.6
- Extension attributes defined for quote shipping or billing addresses
Steps to reproduce
Assuming extension attributes for the quote billing address have been defined
- login as a user who has at least two addresses in his address book
- add a virtual product to card and proceed to checkout
- choose or change the billing address, click update
Expected result
- no errors, address is changed
Actual result
- error is thrown and the checkout loader gets stuck
Metadata
Metadata
Assignees
Labels
Issue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for development