Log in
Model

GuestCartTotalRepository

Magento\Quote\Model\GuestCart\GuestCartTotalRepository

What it does

This class retrieves shopping cart totals for guest customers (non-logged-in users) in Magento 2.

It serves as a bridge that converts the masked cart ID (public identifier) used by guests into the actual quote ID, then delegates to the standard cart total repository to fetch the totals.

Developers use this when building guest checkout functionality or custom storefront features that need to display cart totals for unauthenticated users.

Public Methods

  • get()