Exemplo n.º 1
0
            <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";
}
?>
            </tbody>
          </table>
          <table border="0" width="100%" cellspacing="0" cellpadding="2">
            <?php 
foreach ($lC_Order->getTotals() as $total) {
    echo '      <tr>' . "\n" . '        <td align="right">' . $total['title'] . '</td>' . "\n" . '        <td align="right">' . $total['text'] . '</td>' . "\n" . '      </tr>' . "\n";
}
?>
          </table></td>
      </tr>
    </table>
    <div class="clear-both"></div>