Log in
Model

CustomOptionProcessor

Magento\Catalog\Model\CustomOptions\CustomOptionProcessor

What it does

This class processes custom product options when adding items to the shopping cart in Magento 2.

It converts custom option data between the buy request format and the cart item format, handling various option types including file uploads and date fields.

Developers use this processor to ensure custom product options are properly stored and retrieved from quote items.

Public Methods

  • convertToBuyRequest()
  • processOptions()