hi guys how can i get catalog number instead of default sku number?
$product = Mage::getModel('catalog/product')->loadByAttribute('sku',$str);
the above code fetch item by sku number, but how can i fetch item based on catalog number?
Thanks
Looks like you searched a lot by yourself before asking here ...
Does your catalog number refers to the entity_id ?
If so simply : $product = Mage::getModel('catalog/product')->load($entityId);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.