I have added a quantity field as per http://hkpatel201.blogspot.co.uk/2014/03/how-to-add-custom-qty-to-custom-option.html
All is working well. Screenshot of the admin is http://snag.gy/H9zE4.jpg
I know the following code gets me the Option Type ID
$orderItemOptions = $orderItem->getProductOptions();
if (isset($orderItemOptions['options'][0]['option_value']))
{
$selectedOrderItemOptionId = $orderItemOptions['options'][0]['option_value'];
}
But my question is how do I get the Option Type based on the ID?