Log in
Model

ShippingAddressAssignment

Magento\Quote\Model\ShippingAddressAssignment

What it does

This class manages the assignment of shipping addresses to quotes (shopping carts) in Magento 2.

Developers use it when they need to set or update a quote's shipping address, particularly when handling scenarios where the shipping address should be the same as the billing address or different.

It also manages shipping assignments in the quote's extension attributes, which are needed for proper shipping rate calculation and checkout processing.

Public Methods

  • setAddress()