Log in
Model

Copier

Magento\Catalog\Model\Product\Copier

What it does

This class handles the creation of product duplicates in Magento 2.

Developers use this class when implementing features that need to copy existing products, such as a 'duplicate product' action in the admin panel.

It creates a new product with copied data, disabled status, unique URL keys, and properly handles options, attributes, and store-specific values.

Public Methods

  • copy()