How to retrieve manufacturer id?

$api = new maRest("www.host.com/magento/");     
$manufacturers = array(
    "option" => array(
        'label' => "Sony",
$manufacturer = $api->post("products/attributes/manufacturer/options", $manufacturers);
echo $manufacturer->id;



you can try this

  * Load product by product id
$_productId = YOUR_PRODUCT_ID; 
$_product = Mage::getModel('catalog/product')->load($_productId);

  * Get manufacturer id
$_manufacturerId = $_product->getManufacturer();

hope this helps

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.