Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

get Record from database
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

I need to get the record at database using SKU condition..

is there any function that support it at magento ? or is anybody every try this before ?

thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

got it… hope this would help other.

$products   $product->setStoreId($storeId)->getCollection()

        ->
addAttributeToSelect(array('name''price''small_image'),'inner')
        ->
addAttributeToFilter('sku'$condition);
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top