Load Product by SKU or ID

  • by
<?php
$_product = Mage::getModel('catalog/product')->load(5525);

$_product = Mage::getModel('catalog/product')->loadByAttribute('sku','hypnotherapy-cd-weightloss');

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

This site uses Akismet to reduce spam. Learn how your comment data is processed.