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