Log in
Model

CrossSell

Magento\Catalog\Model\Product\CopyConstructor\CrossSell

What it does

This class handles the copying of cross-sell product links when duplicating a product in Magento 2.

When a merchant creates a copy of an existing product, this class ensures that all cross-sell relationships (products suggested to be purchased together) are transferred to the duplicate product.

Developers use this as part of Magento's product duplication process to maintain product relationships.

Public Methods

  • build()