set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}
if (!isset($HTTP_GET_VARS['order_id']) || (isset($HTTP_GET_VARS['order_id']) && !is_numeric($HTTP_GET_VARS['order_id']))) {
tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
}
$customer_info_query = tep_db_query("select customers_id from " . TABLE_ORDERS . " where orders_id = '". (int)$HTTP_GET_VARS['order_id'] . "'");
$customer_info = tep_db_fetch_array($customer_info_query);
if ($customer_info['customers_id'] != $customer_id) {
tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
}
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT_HISTORY_INFO);
$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
$breadcrumb->add(sprintf(NAVBAR_TITLE_3, $HTTP_GET_VARS['order_id']), tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $HTTP_GET_VARS['order_id'], 'SSL'));
require(DIR_WS_CLASSES . 'order.php');
$order = new order($HTTP_GET_VARS['order_id']);
?>
>
|
|
(' . $order->info['orders_status'] . ')'; ?> |
info['date_purchased']); ?> |
info['total']; ?> |
|
delivery != false) {
?>
|
delivery['format_id'], $order->delivery, 1, ' ', ' '); ?> |
info['shipping_method'])) {
?>
|
info['shipping_method']; ?> |
|
info['tax_groups']) > 1) {
?>
|
|
|
|
products); $i<$n; $i++) {
echo ' ' . "\n" .
' ' . $order->products[$i]['qty'] . ' x | ' . "\n" .
' ' . $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 ' - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '';
}
}
echo ' | ' . "\n";
if (sizeof($order->info['tax_groups']) > 1) {
echo ' ' . tep_display_tax_value($order->products[$i]['tax']) . '% | ' . "\n";
}
echo ' ' . $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']) . ' | ' . "\n" .
' ' . "\n";
}
?>
|
|
|
|
|
|
|
billing['format_id'], $order->billing, 1, ' ', ' '); ?> |
|
info['payment_method']; ?> |
|
totals); $i<$n; $i++) {
echo ' ' . "\n" .
' ' . strip_tags($order->totals[$i]['title'], '') . ' | ' . "\n" .
' ' . strip_tags($order->totals[$i]['text'], '') . ' | ' . "\n" .
' ' . "\n";
}
?>
|
|
|
|
|
' . "\n" .
' ' . tep_date_short($statuses['date_added']) . ' | ' . "\n" .
' ' . $statuses['orders_status_name'] . ' | ' . "\n" .
' ' . (empty($statuses['comments']) ? ' ' : nl2br(tep_output_string_protected($statuses['comments']))) . ' | ' . "\n" .
' ' . "\n";
}
?>
|
|
= CUSTOMER_PRINT_PDF_STATUS)
{
?>
|
|
|
';?>
' . tep_image(DIR_WS_IMAGES . 'icons/print_invoice.png', CONTENT_PRINT_INVOICE) . '';?>
' . CONTENT_INVOICE_2 ;?>
' . CONTENT_INVOICE_3 . '
';?>
' . tep_image(DIR_WS_IMAGES . 'getacro2.gif', '') . '';?>
|
|
|
|
' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . ''; ?> |
|
|
|
|