我需要一些编码方面的帮助。我需要获取所有制造商及其对应的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;
}