Magento Get Option Label or Title
<p>I'm using the Magento function, <code>getCustomOptions</code> which seems to return all the values I need except for the option <strong>label</strong> or <strong>title</strong>.  Here is my testing code:</p>

<pre><code>    foreach($product-&gt;getCustomOptions() as $o) {
        echo '&lt;br /&gt;&lt;strong&gt;[Item ID]&lt;/strong&gt; ' . $o-&gt;getItemId() . '&lt;br /&gt;&lt;strong&gt;[Value ID]&lt;/strong&gt; ' . $o-&gt;getId() . '&lt;br /&gt;&lt;strong&gt;[Value]&lt;/strong&gt; ' . $o-&gt;getValue() . '&lt;br /&gt;&lt;strong&gt;[Code]&lt;/strong&gt; ' . $o-&gt;getCode() . '&lt;br /&gt;';
    }
</code></pre>

<p>Here is the resulting output:</p>

<pre><code>[Item ID] 288
[Value ID] 1035
[Value] a:9:{s:7:"product";s:2:"81";s:8:"form_key";s:16:"MJfb8w59zQw2j3T6";s:7:"handles";a:13:{i:0;s:7:"default";i:1;s:13:"STORE_default";i:2;s:27:"THEME_frontend_argento_mall";i:3;s:20:"catalog_product_view";i:4;s:25:"PRODUCT_TYPE_configurable";i:5;s:10:"PRODUCT_81";i:6;s:19:"customer_logged_out";i:7;s:9:"MAP_popup";i:8;s:19:"MAP_price_msrp_item";i:9;s:14:"SHORTCUT_popup";i:10;s:17:"SHORTCUT_uk_popup";i:11;s:33:"tm_lihgtboxpro_product_info_media";i:12;s:15:"page_one_column";}s:7:"ajaxpro";s:1:"1";s:7:"in_cart";s:1:"1";s:15:"related_product";s:0:"";s:15:"super_attribute";a:3:{i:92;s:3:"107";i:151;s:3:"114";i:161;s:2:"67";}s:7:"options";a:1:{i:35;s:7:"536";}s:3:"qty";s:1:"1";}
[Code] info_buyRequest

[Item ID] 288
[Value ID] 1036
[Value] 35
[Code] option_ids

[Item ID] 288
[Value ID] 1037
[Value] 536
[Code] option_35

[Item ID] 288
[Value ID] 1038
[Value] a:3:{i:92;s:3:"107";i:151;s:3:"114";i:161;s:2:"67";}
[Code] attributes

[Item ID] 288
[Value ID] 1039
[Value] 1
[Code] product_qty_71

[Item ID] 288
[Value ID] 1040
[Value] 71
[Code] simple_product
</code></pre>

<p>Now I need to know how to use the <strong>Item ID</strong> or <strong>Code</strong> to get the option label (or title).</p>