magecoding.blogspot.com
$sku = 'sku here'; $id = Mage::getModel('catalog/product')->getIdBySku($sku); if ($id) { //sku exists } else { //sku does not exist }
simple???
No comments:
Post a Comment