Monday, October 1, 2012

Magento Get Product ID from SKU

Load magento product by its sku. This is the fastest way to get product by sku.
$_product = Mage::getModel('catalog/product')->loadByAttribute('sku',$sku);

3 comments:

  1. Thanks for high grading the content and recommending it too and do visit again for more Magento updates. Hire Magento Developer

    ReplyDelete
  2. The blog posted is very interesting from all aspects and it will surely benefit the readers by all means.
    hire magento developers

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete