Example #1
0
            foreach ($products['attributes'] as $attributes) {
                echo '<br><nobr><small>&nbsp;<i> - ' . $attributes['option'] . ': ' . $attributes['value'];
                if ($attributes['price'] != '0') {
                    echo ' (' . $attributes['prefix'] . $osC_Currencies->format($attributes['price'] * $products['quantity'], $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . ')';
                }
                echo '</i></small></nobr>';
            }
        }
        ?>
      </td>
      <td class="dataTableContent" valign="top"><?php 
        echo $products['model'];
        ?>
</td>
      <td class="dataTableContent" valign="top" align="right"><?php 
        echo tep_display_tax_value($products['tax']) . '%';
        ?>
</td>
      <td class="dataTableContent" valign="top" align="right"><?php 
        echo '<b>' . $osC_Currencies->format($products['final_price'], $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . '</b>';
        ?>
</td>
      <td class="dataTableContent" valign="top" align="right"><?php 
        echo '<b>' . $osC_Currencies->format(tep_add_tax($products['final_price'], $products['tax']), $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . '</b>';
        ?>
</td>
      <td class="dataTableContent" valign="top" align="right"><?php 
        echo '<b>' . $osC_Currencies->format($products['final_price'] * $products['quantity'], $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . '</b>';
        ?>
</td>
      <td class="dataTableContent" valign="top" align="right"><?php 
Example #2
0
            for ($j = 0, $k = sizeof($order->products[$i]['attributes']); $j < $k; $j++) {
                echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];
                if ($order->products[$i]['attributes'][$j]['price'] != '0') {
                    echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
                }
                echo '</i></small></nobr>';
            }
        }
        // BOF: Attributes Product Codes - If product code exists, use it, else default to product model.
        echo '            </td>' . "\n";
        if (tep_not_null($order->products[$i]['code'])) {
            echo '            <td class="dataTableContent" valign="top">' . $order->products[$i]['code'] . '</td>' . "\n";
        } else {
            echo '            <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";
        }
        echo '            <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '            <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->display_price($order->products[$i]['final_price'], 0, 1, $order->info['currency']) . '</b></td>' . "\n" . '            <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], 1, $order->info['currency']) . '</b></td>' . "\n" . '            <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->display_price($order->products[$i]['final_price'], 0, $order->products[$i]['qty'], $order->info['currency']) . '</b></td>' . "\n" . '            <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty'], $order->info['currency']) . '</b></td>' . "\n";
        echo '          </tr>' . "\n";
    }
    ?>
          <tr>
            <td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2">
<?php 
    for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
        echo '              <tr>' . "\n" . '                <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" . '                <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" . '              </tr>' . "\n";
    }
    ?>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
$products = $order->products;
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    if (STOCK_CHECK == 'true') {
        $products[$i]['stock'] = tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
        //  echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
    }
    if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) {
        $attr[$i] = $order->products[$i]['attributes'];
        for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
            $xoopsTpl->assign("attribs", 1);
        }
    }
    $taxgroups = $order->info['tax_groups'];
    if (sizeof($order->info['tax_groups']) > 1) {
        $products[$i]['stax'] = 1;
        $products[$i]['taxd'] = tep_display_tax_value($order->products[$i]['tax']);
    }
    $products[$i]['final_price'] = $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']);
}
$xoopsTpl->assign("fcpa_link", tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));
$xoopsTpl->assign("bad", tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br>'));
$xoopsTpl->assign("fcp_link", tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
$xoopsTpl->assign("cos_link", tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
$xoopsTpl->assign("omt", $order->info['payment_method']);
if (MODULE_ORDER_TOTAL_INSTALLED) {
    $xoopsTpl->assign("mot", 1);
    $order_total_modules->process();
    $xoopsTpl->assign("motc", $order_total_modules->output());
}
if (is_array($payment_modules->modules)) {
    if ($confirmation = $payment_modules->confirmation()) {
Example #4
0
</td>
      </tr>
<?php 
foreach ($osC_Order->getProducts() as $product) {
    echo '      <tr class="dataTableRow">' . "\n" . '        <td class="dataTableContent" valign="top" align="right">' . $product['quantity'] . '&nbsp;x</td>' . "\n" . '        <td class="dataTableContent" valign="top">' . $product['name'];
    if (isset($product['attributes']) && sizeof($product['attributes']) > 0) {
        foreach ($product['attributes'] as $attribute) {
            echo '<br><nobr><small>&nbsp;<i> - ' . $attribute['option'] . ': ' . $attribute['value'];
            if ($attribute['price'] != '0') {
                echo ' (' . $attribute['prefix'] . $osC_Currencies->format($attribute['price'] * $product['quantity'], true, $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . ')';
            }
            echo '</i></small></nobr>';
        }
    }
    echo '        </td>' . "\n" . '        <td class="dataTableContent" valign="top">' . $product['model'] . '</td>' . "\n";
    echo '        <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($product['tax']) . '%</td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $osC_Currencies->format($product['final_price'], true, $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $osC_Currencies->format(tep_add_tax($product['final_price'], $product['tax']), true, $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $osC_Currencies->format($product['final_price'] * $product['quantity'], true, $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $osC_Currencies->format(tep_add_tax($product['final_price'], $product['tax']) * $product['quantity'], true, $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . '</b></td>' . "\n";
    echo '      </tr>' . "\n";
}
?>
      <tr>
        <td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2">
<?php 
foreach ($osC_Order->getTotals() as $total) {
    echo '          <tr>' . "\n" . '            <td align="right" class="smallText">' . $total['title'] . '</td>' . "\n" . '            <td align="right" class="smallText">' . $total['text'] . '</td>' . "\n" . '          </tr>' . "\n";
}
?>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
Example #5
0
    $index = 0;
    $order->products = array();
    $orders_products_query = tep_db_query("select * from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int) $oID . "'");
    while ($orders_products = tep_db_fetch_array($orders_products_query)) {
        $manufacturer_string = $orders_products['manufacturers_name'];
        if ($orders_products['products_year'] > 0) {
            $manufacturer_string .= (tep_not_null($manufacturer_string) ? ', ' : '') . $orders_products['products_year'];
        }
        $order->products[$index] = array('id' => $orders_products['products_id'], 'qty' => $orders_products['products_quantity'], 'name' => str_replace("'", "&#039;", stripslashes($orders_products['products_name'])), 'manufacturer' => $manufacturer_string, 'model' => $orders_products['products_model'], 'code' => $orders_products['products_code'], 'weight' => $orders_products['products_weight'], 'tax' => $orders_products['products_tax'], 'price' => $orders_products['products_price'], 'final_price' => $orders_products['final_price'], 'orders_products_id' => $orders_products['orders_products_id']);
        $index++;
    }
    for ($i = 0, $total_weight = 0, $subtotal_sum = 0; $i < sizeof($order->products); $i++) {
        $RowStyle = "dataTableContent";
        $products_price = tep_round($order->products[$i]['price'] * $order->info['currency_value'], $currencies->currencies[$order->info['currency']]['decimal_places']);
        $final_price = $order->products[$i]['final_price'] * $order->products[$i]['qty'];
        echo '		  <tr class="dataTableRow" align="center">' . "\n" . '			<td class="dataTableContent" align="left">' . ($i + 1) . '.&nbsp;<a href="' . tep_catalog_href_link(FILENAME_CATALOG_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . '" target="_blank"><u>' . $order->products[$i]['name'] . '</u></a></td>' . "\n" . '			<td class="dataTableContent">' . $order->products[$i]['manufacturer'] . '</td>' . "\n" . '			<td class="dataTableContent" nowrap="nowrap">' . $order->products[$i]['model'] . '</td>' . "\n" . '			<td class="dataTableContent">' . $order->products[$i]['code'] . '</td>' . "\n" . '			<td class="dataTableContent">' . $order->products[$i]['weight'] . '</td>' . "\n" . '			<td class="dataTableContent" align="center">' . tep_draw_input_field('update_products[' . $order->products[$i]['orders_products_id'] . '][qty]', $order->products[$i]['qty'], 'size="2" style="text-align: center;"') . '</td>' . "\n" . '			<td class="dataTableContent" align="right">' . $currencies->currencies[$order->info['currency']]['symbol_left'] . tep_draw_input_field('update_products[' . $order->products[$i]['orders_products_id'] . '][price]', (string) $products_price, 'size="6" style="text-align: right;"') . $currencies->currencies[$order->info['currency']]['symbol_right'] . '</td>' . "\n" . '			<td class="dataTableContent" align="center">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '			<td class="dataTableContent" align="right">' . $currencies->format($final_price, true, $order->info['currency'], $order->info['currency_value']) . ($order->info['currency'] != DEFAULT_CURRENCY ? ' (' . $currencies->format($final_price) . ')' : '') . '</td>' . "\n" . '		  </tr>' . "\n";
        $total_weight += $order->products[$i]['weight'] * $order->products[$i]['qty'];
        $subtotal_sum += round($final_price, $currencies->get_decimal_places(DEFAULT_CURRENCY));
    }
    ?>
		</table>
<!-- End Products Listings Block -->
<!-- Begin Order Total Block -->
		<table border="0" cellspacing="0" cellpadding="2" width="100%">
		  <tr>
			<td valign="bottom"><a href="<?php 
    echo tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . '&action=add_products');
    ?>
"><u><strong><font size="3"><?php 
    echo TEXT_DATE_ORDER_ADDNEW;
    ?>
Example #6
0
    }
    ?>
                <td class="dataTableContent"><?php 
    echo $rates['tax_priority'];
    ?>
</td>
                <td class="dataTableContent"><?php 
    echo $rates['tax_class_title'];
    ?>
</td>
                <td class="dataTableContent"><?php 
    echo $rates['geo_zone_name'];
    ?>
</td>
                <td class="dataTableContent"><?php 
    echo tep_display_tax_value($rates['tax_rate']);
    ?>
%</td>
                <td class="dataTableContent" align="right"><?php 
    if (isset($trInfo) && is_object($trInfo) && $rates['tax_rates_id'] == $trInfo->tax_rates_id) {
        echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', '');
    } else {
        echo '<a href="' . tep_href_link(FILENAME_TAX_RATES, 'page=' . $HTTP_GET_VARS['page'] . '&tID=' . $rates['tax_rates_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>';
    }
    ?>
&nbsp;</td>
              </tr>
<?php 
}
?>
              <tr>
Example #7
0
</td>
      </tr>
<?php 
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    echo '      <tr class="dataTableRow">' . "\n" . '        <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" . '        <td class="dataTableContent" valign="top">' . $order->products[$i]['name'];
    if (isset($order->products[$i]['attributes']) && ($k = sizeof($order->products[$i]['attributes'])) > 0) {
        for ($j = 0; $j < $k; $j++) {
            echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];
            if ($order->products[$i]['attributes'][$j]['price'] != '0') {
                echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
            }
            echo '</i></small></nobr>';
        }
    }
    echo '        </td>' . "\n" . '        <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";
    echo '        <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true), true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n";
    echo '      </tr>' . "\n";
}
?>
      <tr>
        <td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2">
<?php 
for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
    echo '          <tr>' . "\n" . '            <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" . '            <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" . '          </tr>' . "\n";
}
?>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
    $product_info = tep_db_fetch_array($product_info_query);
    $periodicity_array = array();
    $periodicity_array['3'] = TEXT_SUBSCRIBE_TO_3_MONTHES;
    $periodicity_array[$product_info['products_periodicity'] / 2] = TEXT_SUBSCRIBE_TO_HALF_A_YEAR;
    $periodicity_array[$product_info['products_periodicity']] = TEXT_SUBSCRIBE_TO_YEAR;
    $products_name = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . '">' . $order->products[$i]['name'] . '</a>';
    if ($product_info['products_types_id'] == '2') {
        $products_name .= ' (' . TEXT_SUBSCRIBE_TO . ' ' . $periodicity_array[$order->products[$i]['qty']] . ')';
    }
    echo '	  <tr valign="top">' . "\n" . '		<td width="95%">' . $order->products[$i]['qty'] . '&nbsp;x&nbsp;' . $products_name;
    if (STOCK_CHECK == 'true') {
        echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
    }
    echo '</td>' . "\n";
    if (sizeof($order->info['tax_groups']) > 1) {
        echo '		<td class="main" nowrap="nowrap" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";
    }
    echo '		<td align="right" nowrap="nowrap">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" . '	  </tr>' . "\n";
}
?>
	</table>
<?php 
if (MODULE_ORDER_TOTAL_INSTALLED) {
    ?>
	<table border="0" width="100%" cellspacing="0" cellpadding="0">
<?php 
    $order_total_modules->process();
    echo $order_total_modules->output();
    ?>
	</table>
<?php 
Example #9
0
     $total_cost += $o['products'][$i]['final_price'] * $o['products'][$i]['qty'];
 }
 if ($HTTP_POST_VARS['DISPLAY_PRICES_WITH_TAX'] == 'on') {
     $subtotal_text = tep_currency_format($total_cost + $o['tax'], true, $o['currency'], $o['currency_value']);
     $subtotal_value = $total_cost + $o['tax'];
 } else {
     $subtotal_text = tep_currency_format($total_cost, true, $o['currency'], $o['currency_value']);
     $subtotal_value = $total_cost;
 }
 tep_db_query("insert into " . $HTTP_POST_VARS['OT_TABLE'] . " (orders_total_id, orders_id, title, text, value, class, sort_order) values ('', '" . $o['id'] . "', '" . $HTTP_POST_VARS['OT_SUBTOTAL'] . "', '" . $subtotal_text . "', '" . $subtotal_value . "', 'ot_subtotal', '1')");
 if ($HTTP_POST_VARS['DISPLAY_MULTIPLE_TAXES'] == 'on') {
     @reset($o['products'][$i]['tax_groups']);
     while (@(list($key, $value) = each($o['products'][$i]['tax_groups']))) {
         $tax_text = tep_currency_format($value, true, $o['currency'], $o['currency_value']);
         $tax_value = $value;
         tep_db_query("insert into " . $HTTP_POST_VARS['OT_TABLE'] . " (orders_total_id, orders_id, title, text, value, class, sort_order) values ('', '" . $o['id'] . "', '" . sprintf($HTTP_POST_VARS['OT_TAX_MULTIPLE'], tep_display_tax_value($key) . '%') . "', '" . $tax_text . "', '" . $tax_value . "', 'ot_tax', '2')");
     }
 } else {
     $tax_text = tep_currency_format($o['tax'], true, $o['currency'], $o['currency_value']);
     $tax_value = $o['tax'];
     tep_db_query("insert into " . $HTTP_POST_VARS['OT_TABLE'] . " (orders_total_id, orders_id, title, text, value, class, sort_order) values ('', '" . $o['id'] . "', '" . $HTTP_POST_VARS['OT_TAX'] . "', '" . $tax_text . "', '" . $tax_value . "', 'ot_tax', '2')");
 }
 if (strlen($o['shipping_method']) < 1) {
     $o['shipping_method'] = $HTTP_POST_VARS['OT_SHIPPING'];
 } else {
     $o['shipping_method'] .= ':';
 }
 if ($HTTP_POST_VARS['DISPLAY_SHIPPING'] == 'on') {
     $shipping_text = tep_currency_format($o['shipping_cost'], true, $o['currency'], $o['currency_value']);
     $shipping_value = $o['shipping_cost'];
     tep_db_query("insert into " . $HTTP_POST_VARS['OT_TABLE'] . " (orders_total_id, orders_id, title, text, value, class, sort_order) values ('', '" . $o['id'] . "', '" . $o['shipping_method'] . "', '" . $shipping_text . "', '" . $shipping_value . "', 'ot_shipping', '3')");
Example #10
0
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    echo '<tr class="dataTableRow ' . ($ct++ & 1 ? 'tabEven' : 'tabOdd') . '">
				<td class="dataTableContent" valign="top" align="center">' . $order->products[$i]['qty'] . '&nbsp;x</td>
				<td class="dataTableContent" valign="top">' . $order->products[$i]['name'];
    if (isset($order->products[$i]['attributes']) && ($k = sizeof($order->products[$i]['attributes'])) > 0) {
        for ($j = 0; $j < $k; $j++) {
            echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];
            if ($order->products[$i]['attributes'][$j]['price'] != '0') {
                echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
            }
            echo '</i></small></nobr>';
        }
    }
    echo '</td>
			<td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>
			<td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>
			<!--td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td-->
			<td class="dataTableContent" align="right" valign="top">' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) . '</td>
			<td class="dataTableContent" align="right" valign="top">' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</td>
			<td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>
		</tr>';
}
?>
      <tr>
        <td colspan="3">
			<a href="javascript:window.print()"><img class="dontprint" src="/admin/includes/languages/english/images/buttons/button_print_invoice.gif" alt="Click to Print This Page" border="0"></a>
		</td>
		<td align="right" colspan="4" style="padding: 20px 0 0 0">
			<table border="0" cellspacing="0" cellpadding="3" align="right">
<?php 
for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
Example #11
0
        </thead>
        <tbody>

<?php 
        for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
            echo '          <tr>' . "\n" . '            <td class="text-right" valign="top">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" . '            <td valign="top">' . $order->products[$i]['name'];
            if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) {
                for ($j = 0, $k = sizeof($order->products[$i]['attributes']); $j < $k; $j++) {
                    echo '<br /><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];
                    if ($order->products[$i]['attributes'][$j]['price'] != '0') {
                        echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
                    }
                    echo '</i></small></nobr>';
                }
            }
            echo '</td>' . "\n" . '            <td valign="top">' . $order->products[$i]['model'] . '</td>' . "\n" . '            <td class="text-right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '            <td class="text-right" valign="top"><strong>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . '            <td class="text-right" valign="top"><strong>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true), true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . '            <td class="text-right" valign="top"><strong>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . '            <td class="text-right" valign="top"><strong>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . '          </tr>' . "\n";
        }
        ?>

        </tbody>
      </table>

      <table class="oscom-table table oscom-table-borderless table-condensed">
        <tbody>

<?php 
        foreach ($order->totals as $ot) {
            echo '          <tr>' . "\n" . '            <td class="text-right">' . $ot['title'] . '</td>' . "\n" . '            <td class="text-right">' . strip_tags($ot['text']) . '</td>' . "\n" . '          </tr>' . "\n";
        }
        ?>
    echo HEADING_TOTAL;
    ?>
</strong></td>
          </tr>
          <?php 
}
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    echo '          <tr>' . "\n" . '            <td class="align-top">' . $order->products[$i]['qty'] . '&nbsp;x&nbsp;</td>' . "\n" . '            <td>' . $order->products[$i]['name'];
    if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) {
        for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
            echo '<br /><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small>';
        }
    }
    echo '</td>' . "\n";
    if (sizeof($order->info['tax_groups']) > 1) {
        echo '            <td>' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";
    }
    echo '            <td class="text-right price">' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</td>' . "\n" . '          </tr>' . "\n";
}
?>
        </table>
      </div>
    </div>
  </div>
  <div class="box">
    <h2 class="page-subheading"><?php 
echo HEADING_BILLING_INFORMATION;
?>
</h2>
    <div class="row">
      <div class="col-xs-4">
                $manufacturers_array[] = array('id' => $manufacturers_row['manufacturers_id'], 'name' => $manufacturers_row['manufacturers_name']);
            }
            $_SESSION['admin']['AAS']['cache_manufacturers_array'] = $manufacturers_array;
        }
    } else {
        $manufacturers_array = $_SESSION['admin']['AAS']['cache_manufacturers_array'];
    }
}
//SAME AS ABOVE. SEE MANUFACTURERS
if ($fieldsArray['tax_class_title']['visible']) {
    //store in SESSION tax classes results in order to avoid continuously call db query
    if (!isset($_SESSION['admin']['AAS']['cache_tax_class_array'])) {
        $tax_class_query = tep_db_query("SELECT tc.tax_class_id, tc.tax_class_title, tr.tax_rate FROM tax_class tc, tax_rates tr WHERE tc.tax_class_id=tr.tax_class_id");
        if (tep_db_num_rows($tax_class_query) > 0) {
            while ($tax_class_row = tep_db_fetch_array($tax_class_query)) {
                $tax_class_array[] = array('id' => $tax_class_row['tax_class_id'], 'title' => $tax_class_row['tax_class_title'], 'tax_rate' => tep_display_tax_value($tax_class_row['tax_rate']));
            }
            $_SESSION['admin']['AAS']['cache_tax_class_array'] = $tax_class_array;
        }
    } else {
        $tax_class_array = $_SESSION['admin']['AAS']['cache_tax_class_array'];
    }
}
//tax class
if (isset($_GET['search']) && tep_not_null($_GET['search'])) {
    $searchOnField = isset($_GET['searchOnField']) ? $_GET['searchOnField'] : 'pd.products_name';
    $searchSql = ' AND ' . $searchOnField . " like '%" . tep_db_input($search) . "%'";
    $tblCategories = '';
    $tblCategoriesWhere = '';
    $tblCategories = ', ' . TABLE_PRODUCTS_TO_CATEGORIES . ' p2c';
    $tblCategoriesWhere = ' AND p.products_id = p2c.products_id ';
Example #14
0
         $pdf->SetFont('Arial', '', 7);
         $order->products[$i]['name'] = str_replace("<br>", '', $order->products[$i]['name']);
         $order->products[$i]['name'] = str_replace("<b>", '', $order->products[$i]['name']);
         $order->products[$i]['name'] = str_replace("</b>", '', $order->products[$i]['name']);
         $pdf->MultiCell(57, $lineheight, substr(iconv('UTF-8', 'windows-1252', $order->products[$i]['name'] . $prodattrstr), 0, 45), 1, 'L');
     } else {
         $order->products[$i]['name'] = str_replace("<br>", '', $order->products[$i]['name']);
         $order->products[$i]['name'] = str_replace("<b>", '', $order->products[$i]['name']);
         $order->products[$i]['name'] = str_replace("</b>", '', $order->products[$i]['name']);
         $pdf->MultiCell(57, $lineheight, iconv('UTF-8', 'windows-1252', $order->products[$i]['name'] . $prodattrstr), 1, 'L');
     }
 }
 $pdf->SetFont('Arial', '', 7);
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(112);
 $pdf->MultiCell(13, $rowheight, tep_display_tax_value($order->products[$i]['tax']) . '%', 1, 'C');
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(30);
 $pdf->SetFont('Arial', '', 7);
 $pdf->MultiCell(25, $rowheight, $order->products[$i]['model'], 1, 'C');
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(125);
 $pdf->SetFont('Arial', '', 7);
 $pdf->MultiCell(20, $rowheight, iconv('UTF-8', 'windows-1252', $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value'])), 1, 'C');
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(145);
 $pdf->MultiCell(20, $rowheight, iconv('UTF-8', 'windows-1252', $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value'])), 1, 'C');
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(165);
 $pdf->MultiCell(20, $rowheight, iconv('UTF-8', 'windows-1252', $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value'])), 1, 'C');
 $pdf->SetY($Y_Table_Position);
              </thead>
           <?php 
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    echo '          <tr class="confirmation-products-listing-row">' . "\n" . '            <td class="content-checkout-confirmation-qty-td">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" . '            <td><span class="text-info strong">' . $order->products[$i]['name'] . '</span>';
    if (STOCK_CHECK == 'true') {
        echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
    }
    if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) {
        for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
            echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . ' ' . $order->products[$i]['attributes'][$j]['prefix'] . ' ' . $currencies->display_price($order->products[$i]['attributes'][$j]['price'], tep_get_tax_rate($products[$i]['tax_class_id']), 1) . '</i></small></nobr>';
        }
    }
    echo '            </td>' . "\n";
    if (sizeof($order->info['tax_groups']) > 1) {
        echo '            <td class="text-right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";
    }
    echo '          <td class="text-right">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" . '          </tr>' . "\n";
}
?>
            </table>
       		  <table class="table margin-bottom-neg"><tr><td>&nbsp;</td></tr></table>
              <div class="row padding-right" id="content-checkout-confirmation-order-totals">
                <div id="content-checkout-confirmation-order-totals-left" class="col-sm-5 col-lg-5"></div>
                <div id="content-checkout-confirmation-order-totals-right" class="col-sm-7 col-lg-7">
				<div class="clearfix">

					  <?php 
if (MODULE_ORDER_TOTAL_INSTALLED) {
    $order_total_modules->process();
    echo '<div class="clearfix"><span class="pull-left ot-total">' . $order_total_modules->output() . '</span></div>';
				</thread>

          <?php 
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    echo ' <tr class="confirmation-products-listing-row">' . "\n" . '<td class="content-checkout-confirmation-qty-td">' . $order->products[$i]['qty'] . '&nbsp;x ' . "\n" . '<td><span class="text-info strong">' . $order->products[$i]['name'];
    if (STOCK_CHECK == 'true') {
        echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
    }
    if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) {
        for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
            echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . ' ' . $order->products[$i]['attributes'][$j]['prefix'] . ' ' . $currencies->display_price($order->products[$i]['attributes'][$j]['price'], tep_get_tax_rate($products[$i]['tax_class_id']), 1) . '</i></small></nobr>';
        }
    }
    echo ' ' . "\n";
    if (sizeof($order->info['tax_groups']) > 1) {
        echo '<td class="main" valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '% ' . "\n";
    }
    echo '<td class="main" align="right" valign="top">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '&nbsp; ' . "\n" . ' ' . "\n";
}
?>
     </table>
  <table class="table margin-bottom-neg"><tr><td>&nbsp;</td></tr></table>
	<div id="content-checkout-confirmation-order-totals-left" class="col-sm-9 col-lg-9"></div>
	<div id="content-checkout-confirmation-order-totals-right" class="col-xs-12 col-sm-3 col-lg-3">

          <?php 
if (MODULE_ORDER_TOTAL_INSTALLED) {
    ?>
                <div id="div_order_total"  style="font-size:14px">
                  <?php 
    //echo $order_total_modules->output();
Example #17
0
</td>
	</tr>
	
<?php 
    for ($i = 0; $i < sizeof($order->products); $i++) {
        $orders_products_id = $order->products[$i]['orders_products_id'];
        $RowStyle = "dataTableContent";
        echo '	  <tr class="dataTableRow">' . "\n" . '	    <td class="' . $RowStyle . '" align="left" width="25">' . "<input name='update_products[{$orders_products_id}][qty]' size='2' value='" . $order->products[$i]['qty'] . "'></td>\n" . '	    <td class="' . $RowStyle . '" width="10">&nbsp;x&nbsp;</td>' . '	    <td class="' . $RowStyle . '" width="300">' . $order->products[$i]['name'] . "<input name='update_products[{$orders_products_id}][name]' type='hidden' value='" . $order->products[$i]['name'] . "'>";
        // # Has Attributes?
        if (sizeof($order->products[$i]['attributes']) > 0) {
            for ($j = 0; $j < sizeof($order->products[$i]['attributes']); $j++) {
                $orders_products_attributes_id = $order->products[$i]['attributes'][$j]['orders_products_attributes_id'];
                echo '<br><nobr><small>&nbsp;<i> - ' . htmlspecialchars($order->products[$i]['attributes'][$j]['option']) . ': ' . htmlspecialchars($order->products[$i]['attributes'][$j]['value']);
            }
        }
        echo '	    </td>' . "\n" . '	    <td class="' . $RowStyle . '">' . $order->products[$i]['model'] . "<input name='update_products[{$orders_products_id}][model]' size='12' type='hidden' value='" . $order->products[$i]['model'] . "'>" . '</td>' . "\n" . '	    <td class="' . $RowStyle . '">' . "<input name='update_products[{$orders_products_id}][tax]' size='4' value='" . tep_display_tax_value($order->products[$i]['tax']) . "'>" . '%</td>' . "\n" . '	    <td class="' . $RowStyle . '" align="right">' . $currencies->format($order->products[$i]['final_price']) . "<input name='update_products[{$orders_products_id}][final_price]' size='5' type='hidden' value='" . $order->products[$i]['final_price'] . "'>" . '</td>' . "\n" . '	    <td class="' . $RowStyle . '" align="right">' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) . '</td>' . "\n" . '	    <td class="' . $RowStyle . '" align="right">' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</td>' . "\n" . '	    <td class="' . $RowStyle . '" align="right"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . '	  </tr>' . "\n";
    }
    ?>
</table>

        </td>
</tr>
      <tr>
	      <td>
				  <table width="100%" cellpadding="0" cellspacing="0">
					  <tr>
						  <td valign="top"><?php 
    echo "<span class='smalltext'>" . HINT_DELETE_POSITION . "</span>";
    ?>
</td>
			        <td align="right"><?php 
Example #18
0
         $pdf->SetFont('Arial', '', 7);
         $order->products[$i]['name'] = str_replace("<br>", '', $order->products[$i]['name']);
         $order->products[$i]['name'] = str_replace("<b>", '', $order->products[$i]['name']);
         $order->products[$i]['name'] = str_replace("</b>", '', $order->products[$i]['name']);
         $pdf->MultiCell(56, 6, substr($order->products[$i]['name'], 0, 45), $border, 'L');
     } else {
         $order->products[$i]['name'] = str_replace("<br>", '', $order->products[$i]['name']);
         $order->products[$i]['name'] = str_replace("<b>", '', $order->products[$i]['name']);
         $order->products[$i]['name'] = str_replace("</b>", '', $order->products[$i]['name']);
         $pdf->MultiCell(56, 6, $order->products[$i]['name'], $border, 'L');
     }
 }
 $pdf->SetFont('Arial', '', 7);
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(111);
 $pdf->MultiCell(14, 6, tep_display_tax_value($order->products[$i]['tax']) . '%', $border, 'C');
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(30);
 $pdf->SetFont('Arial', '', 7);
 $pdf->MultiCell(25, 6, $order->products[$i]['model'], $border, 'C');
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(125);
 $pdf->SetFont('Arial', '', 7);
 $pdf->MultiCell(20, 6, $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']), $border, 'C');
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(145);
 $pdf->MultiCell(20, 6, $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']), $border, 'C');
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(165);
 $pdf->MultiCell(20, 6, $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']), $border, 'C');
 $pdf->SetY($Y_Table_Position);
<?php 
}
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    echo '          <tr>' . "\n" . '            <td align="right" valign="top" width="30">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" . '            <td valign="top">' . $order->products[$i]['name'];
    if (STOCK_CHECK == 'true') {
        echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
    }
    if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) {
        for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
            echo '<br /><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
        }
    }
    echo '</td>' . "\n";
    if (sizeof($order->info['tax_groups']) > 1) {
        echo '            <td valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";
    }
    echo '            <td align="right" valign="top">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" . '          </tr>' . "\n";
}
?>

        </table></td>
      </tr>
    </table>
  </div>

  <h2><?php 
echo HEADING_BILLING_INFORMATION;
?>
</h2>
Example #20
0
            <td class="dataTableHeadingContent"><?php 
    echo TABLE_HEADING_TOTAL;
    ?>
</td>
          </tr>
<?php 
    for ($i = 0, $total_weight = 0, $n = sizeof($order->products); $i < $n; $i++) {
        $product_info_query = tep_db_query("select products_year, manufacturers_id from " . TABLE_PRODUCTS . " where products_id = '" . (int) $order->products[$i]['id'] . "'");
        $product_info = tep_db_fetch_array($product_info_query);
        $manufacturer_info_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS_INFO . " where manufacturers_id = '" . (int) $product_info['manufacturers_id'] . "' and languages_id = '" . (int) $languages_id . "'");
        $manufacturer_info = tep_db_fetch_array($manufacturer_info_query);
        $manufacturer_string = $manufacturer_info['manufacturers_name'];
        if ($product_info['products_year'] > 0) {
            $manufacturer_string .= (tep_not_null($manufacturer_string) ? ', ' : '') . $product_info['products_year'];
        }
        echo '          <tr class="dataTableRow" align="center">' . "\n" . '            <td class="dataTableContent" align="left">' . ($i + 1) . '.&nbsp;<a href="' . tep_catalog_href_link(FILENAME_CATALOG_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . '" target="_blank"><u>' . $order->products[$i]['name'] . '</u></a></td>' . "\n" . '            <td class="dataTableContent">' . $manufacturer_string . '</td>' . "\n" . '            <td class="dataTableContent"><nobr>' . $order->products[$i]['model'] . '</nobr></td>' . "\n" . '            <td class="dataTableContent">' . $order->products[$i]['code'] . '</td>' . "\n" . '            <td class="dataTableContent">' . $order->products[$i]['weight'] . '</td>' . "\n" . '            <td class="dataTableContent">' . $order->products[$i]['qty'] . '</td>' . "\n" . '            <td class="dataTableContent" align="right"><nobr>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) . '</nobr></td>' . "\n" . '            <td class="dataTableContent">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '            <td class="dataTableContent" align="right"><nobr><strong>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></nobr></td>' . "\n" . '          </tr>' . "\n";
        $total_weight += $order->products[$i]['weight'] * $order->products[$i]['qty'];
    }
    ?>
          <tr>
            <td align="right" colspan="9"><table border="0" cellspacing="0" cellpadding="2">
			  <tr>
				<td class="smallText" align="right"><?php 
    echo ENTRY_TOTAL_WEIGHT;
    ?>
</td>
				<td class="smallText" align="center"><?php 
    echo $total_weight . ENTRY_TOTAL_WEIGHT_UNITS;
    ?>
</td>
			  </tr>
Example #21
0
    }
    ?>
                <td class="dataTableContent"><?php 
    echo $Qrates->value('tax_priority');
    ?>
</td>
                <td class="dataTableContent"><?php 
    echo $Qrates->value('tax_class_title');
    ?>
</td>
                <td class="dataTableContent"><?php 
    echo $Qrates->value('geo_zone_name');
    ?>
</td>
                <td class="dataTableContent"><?php 
    echo tep_display_tax_value($Qrates->value('tax_rate'));
    ?>
%</td>
                <td class="dataTableContent" align="right"><?php 
    if (isset($trInfo) && is_object($trInfo) && $Qrates->valueInt('tax_rates_id') === (int) $trInfo->tax_rates_id) {
        echo HTML::image(OSCOM::linkImage('icon_arrow_right.gif'), '');
    } else {
        echo '<a href="' . OSCOM::link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $Qrates->valueInt('tax_rates_id')) . '">' . HTML::image(OSCOM::linkImage('icon_info.gif'), OSCOM::getDef('image_icon_info')) . '</a>';
    }
    ?>
&nbsp;</td>
              </tr>
<?php 
}
?>
              <tr>
Example #22
0
</td>
	  </tr>
	  <tr>
	  <td class="smallText" align="right"><b><?php 
    echo TABLE_HEADING_SHIPPING_TAX;
    ?>
</b></td>
	  <td class="smallText" align="right"><input name="update_shipping_tax" size="10" onKeyUp="getTotals('shipping', '<?php 
    $countryid = tep_get_country_id($order->delivery["country"]);
    $zoneid = tep_get_zone_id($countryid, $order->delivery["state"]);
    $default_tax_name = tep_get_tax_description($default_tax_class, $countryid, $zoneid);
    //default tax class is set at the top of the file
    echo $default_tax_name;
    ?>
')" value="<?php 
    echo tep_display_tax_value($order->info['shipping_tax']);
    ?>
" id="shipping_tax_rate" /></td>
	  <td></td>
	   </tr>
		<tr class="dataTableHeadingRow">
	  <td class="dataTableHeadingContent"></td>
	  <td class="dataTableHeadingContent"><?php 
    echo TABLE_HEADING_TOTAL_AMOUNT;
    ?>
</td>
	  <td class="dataTableHeadingContent"width="1"><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '1');
    ?>
</td>
	</tr>