Home » Magento4 March 2013

Magento: Get Custom Option Value from Order

This article contains code snippet to get custom options value of all products in any Magento order.

Suppose, there is a product with a custom option dropdown list. You chose one of the option from the dropdown list and purchased that product. The code below fetches product’s custom option value selected in any particular order.

Here is the code:-

Hope it helps. Thanks.

php magento mukesh chapagain

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed
  • 디러

    Great ~~~~

  • Patrick Cronin

    Thanks!

  • txyoji

    I got an undefined index “type” when running this code.

    In magento 1.7, the possible keys for the $option array are label, value, print_value, option_id, option_type, option_value and custom_view.