Model
Copier
Magento\Catalog\Model\Product\Copier
What it does
The Copier class creates duplicate products in Magento 2.
Developers use this class when they need to programmatically clone an existing product, which automatically handles copying product data, attributes, options, and generates unique URL keys for the duplicate.
The duplicated product is created in disabled status with all necessary data except stock items and metadata fields.
Public Methods
- copy()