Log in
Model

ShippingAddressAssignment

Magento\Quote\Model\ShippingAddressAssignment

What it does

This class manages the assignment of shipping addresses to shopping cart quotes in Magento 2.

Developers use it when they need to set or update a shipping address on a quote, particularly during checkout processes or when customers change their shipping information.

It handles the logic for determining whether the shipping address should be the same as the billing address and ensures shipping assignments are properly stored in the quote's extension attributes.

Public Methods

  • setAddress()