Log in
Model

GuestCartItemRepository

Magento\Quote\Model\GuestCart\GuestCartItemRepository

What it does

This class manages shopping cart items for guest (non-logged-in) customers in Magento 2.

It acts as a wrapper around the standard CartItemRepository, translating masked cart IDs (public-facing identifiers) to actual quote IDs for security purposes.

Developers would use this when building guest checkout functionality or APIs that need to retrieve, add, or remove items from a guest's cart.

Public Methods

  • getList()
  • save()
  • deleteById()