Esempio n. 1
0
echo $lC_Language->get('table_heading_price_gross');
?>
</th>
                <th align="right"><?php 
echo $lC_Language->get('table_heading_total_net');
?>
</th>
                <th align="right"><?php 
echo $lC_Language->get('table_heading_total_gross');
?>
</th>
              </tr>
            </thead>
            <tbody>
              <?php 
foreach ($lC_Order->getProducts() as $product) {
    echo '<tr>' . "\n" . '  <td colspan="2" align="left" valign="top">' . $product['quantity'] . '&nbsp;x&nbsp;' . "\n" . $product['name'];
    if (isset($product['attributes']) && sizeof($product['attributes']) > 0) {
        foreach ($product['attributes'] as $attribute) {
            echo '<br /><nobr>&nbsp;&nbsp;- <span class="small"><i>' . $attribute['option'] . ': ' . $attribute['value'] . '</i></span></nobr>';
        }
    }
    if (isset($product['options']) && is_array($product['options']) && sizeof($product['options']) > 0) {
        foreach ($product['options'] as $key => $val) {
            echo '<br /><nobr>&nbsp;&nbsp;- <span class="small"><i>' . $val['group_title'] . ': ' . $val['value_title'] . '</i></span></nobr>';
        }
    }
    echo '          </td>' . "\n" . '          <td valign="top">' . $product['model'] . '</td>' . "\n";
    echo '          <td align="right" valign="top">' . $lC_Tax->displayTaxRateValue($product['tax']) . '</td>' . "\n" . '          <td align="right" valign="top"><b>' . $lC_Currencies->format($product['price'], true, $lC_Order->getCurrency(), $lC_Order->getCurrencyValue()) . '</b></td>' . "\n" . '          <td align="right" valign="top"><b>' . $lC_Currencies->displayPriceWithTaxRate($product['price'], $product['tax'], 1, true, $lC_Order->getCurrency(), $lC_Order->getCurrencyValue()) . '</b></td>' . "\n" . '          <td align="right" valign="top"><b>' . $lC_Currencies->format($product['price'] * $product['quantity'], true, $lC_Order->getCurrency(), $lC_Order->getCurrencyValue()) . '</b></td>' . "\n" . '          <td align="right" valign="top"><b>' . $lC_Currencies->displayPriceWithTaxRate($product['price'], $product['tax'], $product['quantity'], true, $lC_Order->getCurrency(), $lC_Order->getCurrencyValue()) . '</b></td>' . "\n";
    echo '        </tr>' . "\n";
}