0
我选择没有图像的magento产品。但产品有图像,只有他们不在管理中选择为Thumbnail
或Small Image
或Base Image
。例如,我可以做图像Base Image
?如何设置产品图片
$products123321 = 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' => '%/%/%'
),
));