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) { .... } |