Log in
Interface

GuestCartManagementInterface

Magento\Quote\Api\GuestCartManagementInterface

What it does

This interface defines the contract for managing guest shopping carts in Magento 2.

Developers use this to create empty carts for anonymous users, assign those carts to customers when they log in or register, and place orders for guest checkouts.

It's primarily used in checkout flows and cart management operations for non-authenticated users.

Public Methods

  • createEmptyCart()
  • assignCustomer()
  • placeOrder()