Fetch custom dropdown in Magento frontend -
i have added custom table called quantities in database. want show drop down in front end.
$model = mage::getmodel('quantities/quantities')->load($_product->getid());
how fetch data , show dropdown. new magento. in advance.
you try this:
$model = mage::getmodel('quantities/quantities')->load($_product->getid()); <select> <?php foreach($model->getdata() $_data): ?> <option><?php echo $_data->getyourattribute() ?></option> <?php endforeach; ?> </select>
granted know data contained in model. if not var_dump($_data) or can print_r($_data)
Comments
Post a Comment