0

I have a drop down list, which is generated by <?php echo $this->getValuesHtml(); ?>. Now I would like to store those values in an array. How can I do that ??

  • Please put more details – Amit Bera Apr 5 '16 at 15:31
  • I am new in Magento. I am working in select.phtml file. I got that code there. That line is printing a drop down list. Now I would like to store those values in an array. – abu abu Apr 5 '16 at 15:34
  • There is not enough information to help you with. Please add more details. My good guess is you need to add your own function ( similar to getValuesHtml ) that return you the array in stead of markup. – Kurdt94 Apr 5 '16 at 15:53

Your Answer

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

Browse other questions tagged or ask your own question.