Log in
Model

ProductOptionProcessor

Magento\Downloadable\Model\ProductOptionProcessor

What it does

This class converts downloadable product options between different formats during the cart and order processing workflow.

It transforms downloadable links from API product options into buy request format when adding products to cart, and converts buy request data back into product option format when processing orders.

Developers use this class when customizing downloadable product behavior or integrating with cart/checkout APIs.

Public Methods

  • convertToBuyRequest()
  • convertToProductOption()