3
我需要一些編碼方面的幫助。我需要獲得所有制造商與他們相應的magento ID列表。那可能嗎?請幫忙。謝謝。我嘗試了一些mods,但只得到一個或另一個。如果可能的話,請幫助這最後一件事。我感謝你提前Magento編程:獲取所有制造商和相應的製造商ID列表
$attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'manufacturer');
foreach ($attribute->getSource()->getAllOptions(true, true) as $option){
$attributeArray[$option['value']] = $option['label'];
}
foreach($attributeArray as $key=>$val){
echo $val;
}
我覺得這是一個擴展到另一個問題:http://stackoverflow.com/questions/10871714/magento-programming-importing-manufacturers-while-checking-for-existing-duplica/ –