Tuesday, 17 December 2013

Accessing custom options of an order in Magento via PHP


Accessing custom options of an order in Magento via PHP

$order = Mage::getModel('sales/order')->load(id);
$items = $order->getAllItems();

foreach ($items as $itemId => $item){
     $opts = $item->getProductOptions();
}

No comments: