}
    if (isset($product['customizations']) && !empty($product['customizations'])) {
        echo '<p>';
        foreach ($product['customizations'] as $key => $customization) {
            echo '<div style="float: left">' . $customization['qty'] . ' x ' . '</div>';
            echo '<div style="margin-left: 25px">';
            foreach ($customization['fields'] as $field) {
                echo $field['customization_fields_name'] . ': ' . $field['customization_value'] . '<br />';
            }
            echo '</div>';
        }
        echo '</p>';
    }
    echo '        </td>' . "\n";
    if (sizeof($order->info['tax_groups']) > 1) {
        echo '      <td valign="top" align="right">' . osC_Tax::displayTaxRateValue($product['tax']) . '</td>' . "\n";
    }
    echo '        <td align="right" valign="top">' . $osC_Currencies->displayPriceWithTaxRate($product['final_price'], $product['tax'], $product['qty'], $order->info['currency'], $order->info['currency_value']) . '</td>' . "\n" . '       </tr>' . "\n";
}
?>

    </table>

    <p>&nbsp;</p>

    <table border="0" width="100%" cellspacing="0" cellpadding="2">

<?php 
foreach ($order->totals as $total) {
    echo '        <tr>' . "\n" . '         <td align="right">' . $total['title'] . '</td>' . "\n" . '         <td align="right" width="100">' . $total['text'] . '</td>' . "\n" . '       </tr>' . "\n";
}
            echo '<br /><nobr><small>&nbsp;<i> - ' . $osC_Language->get('senders_email') . ': ' . $products['gc_data']['recipients_email'] . '</i></small></nobr>';
        }
        echo '<br /><nobr><small>&nbsp;<i> - ' . $osC_Language->get('recipients_name') . ': ' . $products['gc_data']['recipients_name'] . '</i></small></nobr>';
        if ($products['gc_data']['type'] == GIFT_CERTIFICATE_TYPE_EMAIL) {
            echo '<br /><nobr><small>&nbsp;<i> - ' . $osC_Language->get('recipients_email') . ': ' . $products['gc_data']['recipients_email'] . '</i></small></nobr>';
        }
        echo '<br /><nobr><small>&nbsp;<i> - ' . $osC_Language->get('message') . ': ' . $products['gc_data']['message'] . '</i></small></nobr>';
    }
    if (isset($products['variants']) && sizeof($products['variants']) > 0) {
        foreach ($products['variants'] as $variants) {
            echo '<br /><nobr><small>&nbsp;<i> - ' . $variants['groups_name'] . ': ' . $variants['values_name'] . '</i></small></nobr>';
        }
    }
    echo '</td>' . "\n";
    if ($osC_ShoppingCart->numberOfTaxGroups() > 1) {
        echo '                <td valign="top" align="right">' . osC_Tax::displayTaxRateValue($osC_Tax->getTaxRate($products['tax_class_id'], $osC_ShoppingCart->getTaxingAddress('country_id'), $osC_ShoppingCart->getTaxingAddress('zone_id'))) . '</td>' . "\n";
    }
    echo '                <td align="right" valign="top">' . $osC_Currencies->displayPrice($products['final_price'], $products['tax_class_id'], $products['quantity']) . '</td>' . "\n" . '              </tr>' . "\n";
}
?>

            </table>

            <table border="0" width="100%" cellspacing="0" cellpadding="2">

<?php 
// HPDL
//  if ($osC_OrderTotal->hasActive()) {
//    foreach ($osC_OrderTotal->getResult() as $module) {
foreach ($osC_ShoppingCart->getOrderTotals() as $module) {
    echo '              <tr>' . "\n" . '                <td align="right">' . $module['title'] . '</td>' . "\n" . '                <td align="right">' . $module['text'] . '</td>' . "\n" . '              </tr>';
            echo '<div style="float: left">' . $customization['qty'] . ' x ' . '</div>';
            echo '<div style="margin-left: 25px">';
            foreach ($customization['fields'] as $field) {
                echo $field['customization_fields_name'] . ': ' . $field['customization_value'] . '<br />';
            }
            echo '</div>';
        }
        echo '</p>';
    }
    ?>
			</td>
            <?php 
    if (sizeof($order->info['tax_groups']) > 1) {
        ?>
            <td valign="top" align="right"><?php 
        echo osC_Tax::displayTaxRateValue($product['tax']);
        ?>
</td>
            <?php 
    }
    ?>
            <td align="right" valign="top"><?php 
    echo $osC_Currencies->displayPriceWithTaxRate($product['final_price'], $product['tax'], $product['qty'], $order->info['currency'], $order->info['currency_value']);
    ?>
</td>
		</tr>
		<?php 
}
?>
		</table>
            }
            ?>
									</div>
                                    <?php 
        }
        ?>
                                </p>
                                <?php 
    }
    ?>
						</td>
                        <?php 
    if ($osC_ShoppingCart->numberOfTaxGroups() > 1) {
        ?>
                        <td valign="top" align="right"><?php 
        echo osC_Tax::displayTaxRateValue($osC_Tax->getTaxRate($products['tax_class_id'], $osC_ShoppingCart->getTaxingAddress('country_id'), $osC_ShoppingCart->getTaxingAddress('zone_id')));
        ?>
</td>
                        <?php 
    }
    ?>
                        <td align="right" valign="top"><?php 
    echo $osC_Currencies->displayPrice($products['final_price'], $products['tax_class_id'], $products['quantity']);
    ?>
</td>
					</tr>
					<?php 
}
?>
				</tbody>
			</table>