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' => '%/%/%'
),
));