Log in
Model

SuperAttributeDataProvider

Magento\QuoteConfigurableOptions\Model\Cart\BuyRequest\SuperAttributeDataProvider

What it does

This class processes configurable product options from a cart item's selected options and converts them into the 'super_attribute' format required by Magento's buy request.

Developers use this when adding configurable products to the cart through GraphQL or other APIs, as it decodes the base64-encoded option IDs and maps attribute IDs to their selected values.

Public Methods

  • execute()