Magento: Get manufacturer name and id from product
Suppose, you have the product data.
You can get product from either of the following way:-
$_product = $this->getProduct();
OR,
$_product = Mage::getModel('catalog/product')->load(PRODUCT_ID);
Now, here is the code to get manufacturer name and id.
/**
* Get manufacturer name
*/
$manufacturerName = $_product->getAttributeText('manufacturer');
/**
* Get manufacturer id
*/
$manufacturerId = $_product->getManufacturer();