I need to export all products without images in my site.
Asked
Active
Viewed 623 times
2 Answers
1
For this you have to write a custom module or need to filter the product collection which don't have images.
$_products = Mage::getModel('catalog/product')
->getCollection()
->addAttributeToSelect('*')
->addAttributeToFilter(array(
array (
'attribute' => 'image',
'like' => 'no_selection'
),
array (
'attribute' => 'image', // null fields
'null' => true
),
array (
'attribute' => 'image', // empty, but not null
'eq' => ''
),
array (
'attribute' => 'image', // check for information that doesn't conform to Magento's formatting
'nlike' => '%/%/%'
),
));
Jack
- 440
- 6
- 22
0
go to system > import/export > Dataflow Profiles > you can see Export al Products option > click on that , than go to Run profile , than click on Run profile in pop up , than check var/export folder , you can see file with all products.
Edit
if you look at the excel sheet , which contains columns of only images. you can observe the blank values in some fields, those products not have images.
Baby in Magento
- 3,167
- 16
- 83
- 221
-
i need only export which product has no images – Gem Jul 08 '16 at 07:05
-
check my update. – Baby in Magento Jul 08 '16 at 07:07