Commit 31a3293a by halweg

fix : filter configurable product

parent a676df05
......@@ -39,7 +39,7 @@ class ProductFirstImageAsBaseFixer extends Command
{
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$collection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\Collection');
$collection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\Collection')->addFilter('type_id', 'configurable', 'eq');
foreach ($collection as $item) {
$pid = $item->getId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment