Log in
Repository

GuestCartRepositoryInterface

Magento\Quote\Api\GuestCartRepositoryInterface

What it does

This interface defines the contract for retrieving shopping cart information for guest (non-logged-in) users in Magento 2.

Developers use this when they need to fetch cart details for guests using a cart ID, such as when implementing custom checkout flows or retrieving cart data via API for anonymous shoppers.

It ensures that guest cart operations follow a standardized approach across the application.

Public Methods

  • get()