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 between the guest cart system and the regular cart totals repository by converting the masked cart ID (used for guests) into the actual quote ID.

Developers use this when implementing checkout flows or displaying cart summaries for guest shoppers.

Public Methods

  • get()