コーディングについてサポートが必要です。対応するMagentoIDを持つすべてのメーカーのリストを取得する必要があります。それは可能ですか?助けてください。ありがとう。私はいくつかの改造を試しましたが、どちらか一方しか入手できません。可能であれば、plsはこの最後の1つで役立ちます。よろしくお願いします
$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;
}