Wednesday 12 June 2013

Get Custom option in checkout page


<?php foreach($this->getItems() as $_item):?>
        <tr id="onestep_products_val" >
            <td><?php echo $_item->getName();
echo "<br>";

$options = $_item->getProduct()->getTypeInstance(true)->getOrderOptions($_item->getProduct());
?>
<div id="custom_options" style="font-size: 9px; font-weight: normal;">
<?php foreach($options['options'] as $option):

echo $option['label']. ": ";
echo $option['value'];
echo "<br>";
endforeach ?></div>
</td>
            <td class="qty_count"><?php echo $_item->getQty() ?></td>
            <td style="text-align: right;"><?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?></td>
        </tr>
        <?php endforeach ?>


No comments:

Post a Comment