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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -