Skip to content

Status and visibility can not be set after copying a product programmatically?

Magento 2.4.6 I copied a product like that: $childCopy = $objectManager->create(‘MagentoCatalogModelProductCopier’); $childCopy = $childCopy->copy($parent); This works, I can set the SKU, the URL key and so on on the $childCopy, but visibility and status do not work: $childCopy->setSku(‘whatsever’); // works… Read More »Status and visibility can not be set after copying a product programmatically?