Log in
Model

ShippingAssignment

Magento\Quote\Model\ShippingAssignment

What it does

This class represents a shipping assignment in a Magento 2 quote, grouping together shipping information with the quote items that will be shipped together.

Developers use this when handling multi-shipping scenarios, calculating shipping rates, or managing how items are assigned to different shipping addresses and methods during checkout.

Public Methods

  • getShipping()
  • getItems()
  • setShipping()
  • setItems()
  • getExtensionAttributes()
  • setExtensionAttributes()