Log in
Model

GuestCartResolver

Magento\Quote\Model\GuestCart\GuestCartResolver

What it does

This class creates and retrieves empty shopping carts for guest (non-logged-in) customers.

Developers use it when they need to programmatically initialize a new guest cart, optionally with a predefined masked quote ID for tracking or integration purposes.

It handles the creation of the cart and manages the masked ID mapping that hides the internal quote ID from guests.

Public Methods

  • resolve()