Using the following code, you can get the custom options from a Magento order item:
|
1 2 3 4 5 6 7 |
$items = $order->getAllItems(); foreach ($items as $item) { $options = $item->getProductOptions(); $options = $options['options']; $optionLabel = $option['label']; // ... } |
Getting custom options of an order item
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.