Home / Magento / Magento 1x: Get Custom module table values by other field not id

Magento 1x: Get Custom module table values by other field not id

Get Custom module table values by field other than id on Magento 1x

<?php
$model =  Mage::getModel('modelname/modelname');
$customer_id = Mage::getModel('modelname/modelname')->load('table column value', 'table column name');;
echo $customer_id = $customer_id->getData('table column name');	
?>

Hits: 68

%d bloggers like this: