Log in
Model

ShippingAddressManagement

Magento\Quote\Model\ShippingAddressManagement

What it does

This class manages shipping address operations for shopping carts in Magento 2.

Developers use it to assign a shipping address to a quote (cart) or retrieve the current shipping address, with built-in validation and handling for virtual products that don't require shipping.

It's commonly used during checkout when customers enter or select their shipping address.

Public Methods

  • assign()
  • get()