2

I am new to magento, I have to add multi select drop down and a comma separated field to magento admin panel using phtml file, can any one guide me for this. thanks...

  • Sorry, slipped from mind – Abdul Ghaffar Feb 29 '16 at 11:20
2

you can add comma separated in option it like below

<?php    $values='a,b,c,d,e';
    $array=explode(',',$values);
    ?>

 <select multiple name="option[]"> <?php foreach($array as $value)
{  ?>
  <option value="<?php echo $value ?>"><?php echo $value ?></option>
<?php } ?> 

</select> 
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.