Log in
Model

Shipping

Magento\Quote\Model\Shipping

What it does

This model represents shipping information for a quote (shopping cart) in Magento 2.

Developers use this class to store and retrieve the shipping address and selected shipping method for a quote, typically during checkout or when managing quote shipping details programmatically.

It implements the ShippingInterface and supports extension attributes for custom shipping data.

Public Methods

  • getAddress()
  • setAddress()
  • getMethod()
  • setMethod()
  • getExtensionAttributes()
  • setExtensionAttributes()