Log in
Model

UpdateCartCurrency

Magento\QuoteGraphQl\Model\Cart\UpdateCartCurrency

What it does

This class updates a shopping cart's currency when the store context changes in GraphQL operations.

Developers use it when implementing GraphQL mutations that require switching a cart to a different store view with a different currency, ensuring the cart's currency codes are synchronized with the new store's currency.

Public Methods

  • execute()