Log in
Repository

GuestCartTotalRepositoryInterface

Magento\Quote\Api\GuestCartTotalRepositoryInterface

What it does

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

Developers use this when building checkout flows, cart displays, or API integrations that need to fetch calculated totals (subtotal, tax, shipping, grand total) for a guest's cart using only the cart ID/masked ID without requiring customer authentication.

Public Methods

  • get()