Log in
Model

ShippingAddressPersister

Magento\Quote\Model\Quote\Address\ShippingAddressPersister

What it does

This class handles the persistence of shipping addresses for quotes (shopping carts) in Magento 2.

Developers use this when they need to save or update a customer's shipping address during checkout, ensuring the address is validated and properly linked to the customer's address book if applicable.

It manages both guest checkouts and registered customer scenarios, importing address data from the customer's saved addresses when a customer address ID is provided.

Public Methods

  • save()