Use the below code to figure out what custom option was selected by the customer for a cart item:
|
1 2 3 4 5 |
$productOptions = $item->getProduct()->getTypeInstance(true)->getOrderOptions($item->getProduct()); foreach($productOptions as $option) { .... } |
Getting selected custom options of a cart 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.