Log in
Interface

GuestCartManagementInterface

Magento\Quote\Api\GuestCartManagementInterface

What it does

This interface defines the contract for managing shopping carts for guest (non-logged-in) customers in Magento 2.

Developers use this interface to create empty carts for anonymous users, convert guest carts to customer carts when users log in or register, and place orders for guest checkout.

It's essential for implementing guest checkout functionality and cart operations without requiring customer authentication.

Public Methods

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