导出禁用的产品Magento 1.9
我正在将所有产品目录导出为csv,但无法获取禁用的产品导出禁用的产品Magento 1.9,magento,Magento,我正在将所有产品目录导出为csv,但无法获取禁用的产品 Mage::app('default'); Mage::app()->setCurrentStore(4); $productCollection = Mage::getModel("catalog/product")->getCollection()->addWebsiteFilter(1); $productCollection->addAttributeToSelect(array('nam
Mage::app('default');
Mage::app()->setCurrentStore(4);
$productCollection = Mage::getModel("catalog/product")->getCollection()->addWebsiteFilter(1);
$productCollection->addAttributeToSelect(array('name', 'price','special_price','created_at', 'gusto','marca','url_key', 'formato','weight', 'image', 'status','short_description','description','sku', 'category_ids','ingredienti','uso'));
$productCollection->joinField(
'qty',
'cataloginventory/stock_item',
'qty',
'product_id=entity_id',
'{{table}}.stock_id=1',
'left'
)->addWebsiteFilter(1);
foreach ($productCollection as $product) {
if ($product->getData('status') != 1) { die("FOUND DISABLED PRODUCT"); }
}
我还需要得到禁用的产品
谢谢