Esempio n. 1
0
    public function getTaxRate($class_id, $country_id = null, $zone_id = null) {
      if ( !isset($country_id) && !isset($zone_id)) {
        $country_id = STORE_COUNTRY;
        $zone_id = STORE_ZONE;
      }

      return parent::getTaxRate($class_id, $country_id, $zone_id);
    }
    ?>
</h6></td>
              </tr>

<?php 
}
foreach ($order->products as $product) {
    echo '              <tr>' . "\n" . '                <td align="right" valign="top" width="30">' . $product['qty'] . '&nbsp;x</td>' . "\n" . '                <td valign="top">' . $product['name'];
    if (isset($product['attributes']) && count($product['attributes']) > 0) {
        foreach ($product['attributes'] as $attribute) {
            echo '<br /><nobr><small>&nbsp;<i> - ' . $attribute['option'] . ': ' . $attribute['value'] . '</i></small></nobr>';
        }
    }
    echo '</td>' . "\n";
    if (count($order->info['tax_groups']) > 1) {
        echo '                <td valign="top" align="right">' . Tax::displayTaxRateValue($product['tax']) . '</td>' . "\n";
    }
    echo '                <td align="right" valign="top">' . $OSCOM_Currencies->displayPriceWithTaxRate($product['price'], $product['tax'], $product['qty'], false, $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">' . $total['text'] . '</td>' . "\n" . '              </tr>' . "\n";
}