Log in
Model

CatalogDiscount

Magento\QuoteGraphQl\Model\Resolver\CatalogDiscount

What it does

This GraphQL resolver calculates catalog-level discounts for cart items by comparing their original price with their current price.

Developers use this class when building GraphQL queries that need to display price discounts on shopping cart items, such as showing how much a customer is saving on a product due to catalog price rules or special prices.

Public Methods

  • resolve()