Log in
Model

UpSell

Magento\Catalog\Model\Product\CopyConstructor\UpSell

What it does

This class is responsible for copying up-sell product links when duplicating a product in Magento 2.

When a developer or admin creates a duplicate of an existing product, this class ensures that all up-sell product relationships are transferred from the original product to the new duplicate product.

It's automatically used during the product duplication process as part of the copy constructor pattern.

Public Methods

  • build()