products));
$orders_statuses = array();
$orders_status_array = array();
$orders_status_query = tep_db_query("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '" . (int)$languages_id . "'");
while ($orders_status = tep_db_fetch_array($orders_status_query)) {
$orders_statuses[] = array('id' => $orders_status['orders_status_id'],
'text' => $orders_status['orders_status_name']);
$orders_status_array[$orders_status['orders_status_id']] = $orders_status['orders_status_name'];
}
$action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
if (tep_not_null($action)) {
switch ($action) {
case 'update_order':
$oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
$status = tep_db_prepare_input($HTTP_POST_VARS['status']);
$comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
$order_avoir_query = tep_db_query("select orders_avoir_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");
$order_avoir_id = tep_db_fetch_array($order_avoir_query);
/* #CHAVEIRO3# Tracking begin
$track_num = tep_db_prepare_input($HTTP_POST_VARS['track_num']);
$track_num2 = tep_db_prepare_input($HTTP_POST_VARS['track_num2']);
#CHAVEIRO3# Tracking end*/
$order_updated = false;
$check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");
$check_status = tep_db_fetch_array($check_status_query);
if ( ($check_status['orders_status'] != $status) || tep_not_null($comments)) {
tep_db_query("update " . TABLE_ORDERS . " set orders_status = '" . tep_db_input($status) . "', last_modified = now() where orders_id = '" . (int)$oID . "'");
$customer_notified = '0';
if (isset($HTTP_POST_VARS['notify']) && ($HTTP_POST_VARS['notify'] == 'on')) {
$notify_comments = '';
if (isset($HTTP_POST_VARS['notify_comments']) && ($HTTP_POST_VARS['notify_comments'] == 'on')) {
$notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "\n\n";
}
/* #CHAVEIRO3# Tracking contribution begin #ZOULXP#*/
$notify_tracking = '';
/*if ((isset($HTTP_POST_VARS['notify_tracking']) && ($HTTP_POST_VARS['notify_tracking'] == 'on')) & (tep_not_null($track_num))) {
$notify_tracking = sprintf(EMAIL_TEXT_TRACKING_NUMBER) . '
' . URL_TO_TRACK1 . $track_num. '
';
}
if ((isset($HTTP_POST_VARS['notify_tracking']) && ($HTTP_POST_VARS['notify_tracking'] == 'on')) & (tep_not_null($track_num2))) {
$notify_tracking = sprintf(EMAIL_TEXT_TRACKING_NUMBER) . '
' . URL_TO_TRACK2 . $track_num2. '
';
}*/
//preparation options et produits du mail
$products_ordered = '';
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
$products_ordered_attributes = '';
for($j = 0; $j < sizeof($order->products[$i]['attributes']); $j++) {
if ($order->products[$i]['attributes'][$j]['option'] != '') {
$products_ordered_attributes .= '
- ' . $order->products[$i]['attributes'][$j]['option'] . ' ' . $order->products[$i]['attributes'][$j]['value'];
}
}
$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'];
if ($order->products[$i]['model'] != '') $products_ordered .= ' (' . $order->products[$i]['model'] . ')';
$products_ordered .= ' = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . '
';
}
$email = EMAIL_START_HTML;
$email .= EMAIL_SPAN_START_STYLE;
$email .= STORE_NAME . '
' . EMAIL_SEPARATOR . '
' . EMAIL_TEXT_ORDER_NUMBER . ' ' . $order_avoir_id['orders_avoir_id'] . '
' . EMAIL_TEXT_INVOICE_URL . ' ' . '' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . '' . '
' . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . '
' . EMAIL_SEPARATOR . '
' . EMAIL_TEXT_PRODUCTS . '
' .
$products_ordered . EMAIL_SEPARATOR . '
';
for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
$email .= $order->totals[$i]['title'] . ' ' . $order->totals[$i]['text'] . '
';
}
if ($notify_tracking != '')
$email .= '
' . EMAIL_TEXT_TRACKING_NUMBER . '
' . $notify_tracking . '
';
if ($comments != '')
$email .= '
' . $notify_comments;
$email .= '
' . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);
$email .= EMAIL_SPAN_STOP_STYLE;
$email .= EMAIL_STOP_HTML;
tep_mail($check_status['customers_name'], $check_status['customers_email_address'], sprintf(EMAIL_TEXT_SUBJECT, $order_avoir_id['orders_avoir_id']), $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
$customer_notified = '1';
}
tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')");
$order_updated = true;
}
if ($order_updated == true) {
$messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success');
} else {
$messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning');
}
tep_redirect(tep_href_link(FILENAME_ORDERS_AVOIR, 'oID='.$oID));
break;
// ################# commande d'avoir ##################
case 'add_order':
//insertion de la commande dans la table ORDERS
$sql_data_array = array('customers_id' => $order->customer['customers_id'],
'customers_name' => $order->customer['name'],
'customers_company' => $order->customer['company'],
'customers_street_address' => $order->customer['street_address'],
'customers_suburb' => $order->customer['suburb'],
'customers_city' => $order->customer['city'],
'customers_postcode' => $order->customer['postcode'],
'customers_state' => $order->customer['state'],
'customers_country' => $order->customer['country'],
'customers_address_format_id' => $order->customer['format_id'],
'customers_telephone' => $order->customer['telephone'],
'customers_email_address' => $order->customer['email_address'],
'delivery_name' => $order->delivery['name'],
'delivery_company' => $order->delivery['company'],
'delivery_street_address' => $order->delivery['street_address'],
'delivery_suburb' => $order->delivery['suburb'],
'delivery_city' => $order->delivery['city'],
'delivery_postcode' => $order->delivery['postcode'],
'delivery_state' => $order->delivery['state'],
'delivery_country' => $order->delivery['country'],
'delivery_address_format_id' => $order->delivery['format_id'],
'billing_name' => $order->billing['name'],
'billing_company' => $order->billing['company'],
'billing_street_address' => $order->billing['street_address'],
'billing_suburb' => $order->billing['suburb'],
'billing_city' => $order->billing['city'],
'billing_postcode' => $order->billing['postcode'],
'billing_state' => $order->billing['state'],
'billing_country' => $order->billing['country'],
'billing_address_format_id' => $order->billing['format_id'],
'currency' => $order->info['currency'],
'currency_value' => $order->info['currency_value'],
'payment_method' => $order->info['payment_method'],
'cc_type' => $order->info['cc_type'],
'cc_owner' => $order->info['cc_owner'],
'cc_number' => $order->info['cc_number'],
'cc_expires' => $order->info['cc_expires'],
'date_purchased' => $order->info['date_purchased'],
'orders_status' => DEFAULT_ORDERS_STATUS,
'last_modified' => $order->info['last_modified'],
'orders_avoir_id' => $oID);
tep_db_perform(TABLE_ORDERS, $sql_data_array);
$orders_id = tep_db_insert_id();
//insertion des produits dans la table ORDERS_PRODUCTS
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
$sql_data_array = array('orders_id' => (int)$orders_id,
'products_id' => (int)$order->products[$i]['products_id'],
'products_model' => $order->products[$i]['model'],
'products_name' => $order->products[$i]['name'],
'products_price' => (float)$order->products[$i]['price'],
'products_cost' => (float)$order->products[$i]['cost'],
'final_price' => (float)$order->products[$i]['final_price'],
'products_tax' => (float)$order->products[$i]['tax'],
'products_quantity' => '-' . (int)$order->products[$i]['qty']);
tep_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array);
$order_products_id = tep_db_insert_id();
//insertion des attributs dans la table ORDERS_PRODUCTS_ATTRIBUTES
for($j = 0; $j < sizeof($order->products[$i]['attributes']); $j++) {
$sql_data_array = array('orders_id' => $orders_id,
'orders_products_id' => $order_products_id,
'products_options' => $order->products[$i]['attributes'][$j]['option'],
'products_options_values' => $order->products[$i]['attributes'][$j]['value'],
'options_values_price' => $order->products[$i]['attributes'][$j]['price'],
'price_prefix' => '');
if ($sql_data_array['products_options_values'] != '') {
tep_db_perform(TABLE_ORDERS_PRODUCTS_ATTRIBUTES, $sql_data_array);
}
}
//mise a jour du Stock dans la table PRODUCTS
tep_db_query("update " . TABLE_PRODUCTS . " set products_quantity = (products_quantity + '" . (int)$order->products[$i]['qty'] . "') where products_id = '" . (int)$order->products[$i]['products_id'] . "'");
} //for produits
//fdp, sous_total, tax et total ...........................
for ($i = 0; $i < sizeof($order->totals); $i++) {
$sql_data_array = array('orders_id' => $orders_id,
'title' => $order->totals[$i]['title'],
'text' => '-' . $order->totals[$i]['text'],
'value' => '-' . (float)($order->totals[$i]['value']),
'class' => $order->totals[$i]['class'],
'sort_order' => $order->totals[$i]['sort_order']);
tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array);
}
//Status de la commande par défaut
$sql_data_array = array('orders_id' => $orders_id,
'orders_status_id' => DEFAULT_ORDERS_STATUS,
'date_added' => $order->info['date_purchased'],
'customer_notified' => 1,
'comments' => '');
tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);
tep_redirect(tep_href_link(FILENAME_ORDERS, 'oID='.$orders_id));
break;
// ################# verifier si l'avoir existe ##################
case 'edit_order':
$orders_avoir = tep_db_query("select orders_avoir_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");
$orders_avoir_id = tep_db_fetch_array($orders_avoir);
if ($orders_avoir_id['orders_avoir_id'] == '') {
$messageStack->add_session(ERROR_ORDER_DOES_NOT_EXIST, 'warning');
tep_redirect(tep_href_link(FILENAME_ORDERS, 'oID='.$oID));
}
break;
// ################# Mis à jour des quantités des produits ##################
case 'maj_order':
$orders_products_id_maj = tep_db_prepare_input($HTTP_POST_VARS['forders_products_id_maj']);
$products_quantite = tep_db_prepare_input($HTTP_POST_VARS['fproducts_quantite_maj']);
$fdp_prix = tep_db_prepare_input($HTTP_POST_VARS['ffdp_prix']);
$ffdp_titre = tep_db_prepare_input($HTTP_POST_VARS['ffdp_titre']);
for ($i = 0; $i < sizeof($orders_products_id_maj); $i++) {
tep_db_query("update " . TABLE_ORDERS_PRODUCTS . " set products_quantity = '" . (int)(tep_db_input($products_quantite[$i])) . "' where orders_products_id = '" . (int)$orders_products_id_maj[$i] . "'");
}
// .........sommes des taxes par groupe ......................
for ($i = 0; $i < sizeof($order->products); $i++) {
$orders_products_query = tep_db_query("select products_tax, sum(final_price*products_tax*products_quantity)/100 as total_tax from " . TABLE_ORDERS_PRODUCTS . " where products_tax = '" . $order->products[$i]['tax'] . "' and orders_id = '" . (int)$oID . "'");
$orders_products = tep_db_fetch_array($orders_products_query);
$products_tax[] = $orders_products['products_tax'];
$products_tax_rate = array_values(array_unique($products_tax));
$total_tax[] = $orders_products['total_tax'];
$tax_somme_group = array_values(array_unique($total_tax));
}
for ($i = 0; $i < sizeof($products_tax_rate); $i++) {
$taxs_description_query = tep_db_query("select tax_description from " . TABLE_TAX_RATES . " where tax_rate = '" . $products_tax_rate[$i] . "'");
$taxs_description = tep_db_fetch_array($taxs_description_query);
tep_db_query("update " . TABLE_ORDERS_TOTAL . " set text = '" . tep_db_input($currencies->format($tax_somme_group[$i], true)) . "', value = '" . (float)tep_db_input($tax_somme_group[$i]) . "' where class = 'ot_tax' and orders_id = '" . (int)$oID . "' and title = '" . $taxs_description['tax_description'] . ":'");
}
tep_db_query("delete from " . TABLE_ORDERS_TOTAL . " where class = 'ot_tax' and orders_id = '" . (int)$oID . "' and value = 0");
// .............. frais de port ..........................
if ($fdp_prix != '') {
tep_db_query("update " . TABLE_ORDERS_TOTAL . " set text = '" . tep_db_input($currencies->format($fdp_prix[0], true)) . "', value = '" . (float)tep_db_input($fdp_prix[0]) . "', title = '" . tep_db_input($ffdp_titre[0]) . "' where class = 'ot_shipping' and orders_id = '" . (int)$oID . "'");
}
//................ Sous_Total TTC ................................
for ($i = 0; $i < sizeof($order->products); $i++) {
$orders_products_query = tep_db_query("select sum((final_price*products_tax*products_quantity)/100) + sum(final_price*products_quantity) as sous_total from " . TABLE_ORDERS_PRODUCTS . " where products_tax = '" . $order->products[$i]['tax'] . "' and orders_id = '" . (int)$oID . "'");
while ($orders_products = tep_db_fetch_array($orders_products_query)) {
$sous_total[] = $orders_products['sous_total'];
$sous_total_ttc = array_sum(array_unique($sous_total));
}
}
tep_db_query("update " . TABLE_ORDERS_TOTAL . " set text = '" . tep_db_input($currencies->format($sous_total_ttc, true)) . "', value = '" . (float)tep_db_input($sous_total_ttc) . "' where class = 'ot_subtotal' and orders_id = '" . (int)$oID . "'");
// .................. Total TTC .................................
$fdp_query = tep_db_query("select value from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . (int)$oID . "' and class = 'ot_shipping'"); $fdp = tep_db_fetch_array($fdp_query);
$total_ttc = (float)$sous_total_ttc + (float)$fdp['value'];
tep_db_query("update " . TABLE_ORDERS_TOTAL . " set text = '" . tep_db_input($currencies->format($total_ttc, true)) . "', value = '" . (float)tep_db_input($total_ttc) . "' where class = 'ot_total' and orders_id = '" . (int)$oID . "'");
tep_redirect(tep_href_link(FILENAME_ORDERS_AVOIR, 'oID='.$oID));
break;
// ################## Fin Mis à jour ###################
// ################# supprimer un produit #############################
case 'remove_products':
$remove_products_id = $HTTP_GET_VARS['remove_products_id'];
$remove_products_query = tep_db_query("select products_id, products_quantity, products_tax from " . TABLE_ORDERS_PRODUCTS . " where orders_products_id = '" . (int)$remove_products_id . "'");
$remove_products = tep_db_fetch_array($remove_products_query);
$update_tax_description_query = tep_db_query("select tax_description from " . TABLE_TAX_RATES . " where tax_rate = '" . $remove_products['products_tax'] . "'");
$update_tax_description = tep_db_fetch_array($update_tax_description_query);
tep_db_query("update " . TABLE_ORDERS_TOTAL . " set text = '" . $currencies->format(0, true) . "', value = 0 where class = 'ot_tax' and orders_id = '" . (int)$oID . "' and title = '" . $update_tax_description['tax_description'] . ":'");
tep_db_query("delete from " . TABLE_ORDERS_PRODUCTS . " where orders_products_id = '" . $remove_products_id . "' and orders_id = '" . (int)$oID . "'");
tep_db_query("delete from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . " where orders_products_id = '" . $remove_products_id . "' and orders_id = '" . (int)$oID . "'");
//mise a jour du Stock dans la table PRODUCTS
tep_db_query("update " . TABLE_PRODUCTS . " set products_quantity = (products_quantity + '" . (int)$remove_products['products_quantity'] . "') where products_id = '" . (int)$remove_products['products_id'] . "'");
// $messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success');
tep_redirect(tep_href_link(FILENAME_ORDERS_AVOIR, tep_get_all_get_params(array('action')) . 'action=maj_order'));
break;
// #################### Ajouter un produit ######################
case 'ajouter':
$fidproduit = tep_db_prepare_input($HTTP_POST_VARS['fmenu_products']);
$attributes_options_id = tep_db_prepare_input($HTTP_POST_VARS['attributes_options_id']);
$products_quantite = tep_db_prepare_input($HTTP_POST_VARS['fproducts_quantite_add']);
$shoppingCart = new shoppingCart;
$shoppingCart->contents[$fidproduit] = array('qty' => $products_quantite);
if (is_array($attributes_options_id)) {
reset($attributes_options_id);
while (list($options_id, $options_values_id) = each($attributes_options_id)) {
$shoppingCart->contents[$fidproduit]['attributes'][$options_id] = $options_values_id;
}
}
if ($products_quantite != '') {
//insertion des produits dans la table ORDERS_PRODUCTS
$products = $shoppingCart->get_products();
for ($i = 0; $i < sizeof($products); $i++) {
$sql_data_array = array('orders_id' => $oID,
'products_id' => (int)$products[$i]['id'],
'products_model' => $products[$i]['model'],
'products_name' => $products[$i]['name'],
'products_price' => (float)$products[$i]['price'],
'products_cost' => (float)$order->products[$i]['cost'],
'final_price' => (float)$products[$i]['final_price'],
'products_tax' => (float)(tep_get_tax_rate($products[$i]['tax_class_id'])),
'products_quantity' => (int)$products[$i]['quantity']);
tep_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array);
$order_products_id = tep_db_insert_id();
//insertion des attributs dans la table ORDERS_PRODUCTS_ATTRIBUTES
$attributes = $shoppingCart->get_attributes($fidproduit);
if (is_array($products[$i]['attributes'])) reset($products[$i]['attributes']);
for($j = 0; $j < sizeof($products[$i]['attributes']); $j++) {
$sql_data_array = array('orders_id' => $oID,
'orders_products_id' => $order_products_id,
'products_options' => $attributes[$j]['products_options'],
'products_options_values' => $attributes[$j]['products_options_values'],
'options_values_price' => $attributes[$j]['options_values_price'],
'price_prefix' => $attributes[$j]['price_prefix']);
if ($sql_data_array['products_options_values'] != '') {
tep_db_perform(TABLE_ORDERS_PRODUCTS_ATTRIBUTES, $sql_data_array);
}
}
//mise a jour du Stock dans la table PRODUCTS
tep_db_query("update " . TABLE_PRODUCTS . " set products_quantity = (products_quantity - '" . (int)$products[$i]['quantity'] . "') where products_id = '" . (int)$products[$i]['id'] . "'");
} //for produits
//insertion de la Taxe du produit (si celle-ci n'existe pas)
$products_tax_query = tep_db_query("select products_tax from " . TABLE_ORDERS_PRODUCTS . " where orders_products_id = '" . (int)$order_products_id . "'");
$products_tax = tep_db_fetch_array($products_tax_query);
$tax_description_query = tep_db_query("select tax_description from " . TABLE_TAX_RATES . " where tax_rate = '" . $products_tax['products_tax'] . "'");
$tax_description = tep_db_fetch_array($tax_description_query);
$order_tax_check = tep_db_query("select title from " . TABLE_ORDERS_TOTAL . " where class = 'ot_tax' and orders_id = '" . (int)$oID . "' and title = '" . $tax_description['tax_description'] . ":'");
$order_tax = tep_db_fetch_array($order_tax_check);
$sql_data_array = array('orders_id' => $oID,
'title' => $tax_description['tax_description'] . ':',
'text' => '',
'value' => '',
'class' => 'ot_tax',
'sort_order' => MODULE_ORDER_TOTAL_TAX_SORT_ORDER);
if ( $order_tax['title'] == '' ) {
tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array);
}
tep_redirect(tep_href_link(FILENAME_ORDERS_AVOIR, tep_get_all_get_params(array('action')) . 'action=maj_order'));
}
break;
// ############################ - Fin ajouter un produit ############################
}
}
?>
>
|
|
|
' . tep_image_button('button_back.gif', IMAGE_BACK) . ''; ?> |
|
|
customer['format_id'], $order->customer, 1, '', ' '); ?> |
|
|
customer['telephone']; ?> |
|
customer['email_address'] . '">' . $order->customer['email_address'] . ''; ?> |
|
|
delivery['format_id'], $order->delivery, 1, '', ' '); ?> |
|
|
billing['format_id'], $order->billing, 1, '', ' '); ?> |
|
|
|
|
info['payment_method']; ?> |
info['cc_type']) || tep_not_null($order->info['cc_owner']) || tep_not_null($order->info['cc_number'])) {
?>
|
|
info['cc_type']; ?> |
|
info['cc_owner']; ?> |
|
info['cc_number']; ?> |
|
info['cc_expires']; ?> |
|
|
|
|
|
|
|
|
|
|
|
products); $i < $n; $i++) {
//------------récuperer les données du produit-----------------
echo ' ' . "\n" .
' | ' . tep_image(DIR_WS_IMAGES . 'poubelle.gif', IMAGE_BUTTON_REMOVE_PRODUCT, 16, 22) . ' | | ' . "\n" .
' ' . $order->products[$i]['name'];
if (isset($order->products[$i]['attributes']) && (($k = sizeof($order->products[$i]['attributes'])) > 0)) {
for ($j = 0; $j < $k; $j++) {
echo ' - ' . $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 '';
}
}
echo ' | ' . "\n" .
' ' . $order->products[$i]['model'] . ' | ' . "\n";
echo ' ' . tep_display_tax_value($order->products[$i]['tax']) . '% | ' . "\n" .
' ' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . ' | ' . "\n" .
' ' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true), true, $order->info['currency'], $order->info['currency_value']) . ' | ' . "\n" .
' ' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ' | ' . "\n" .
' ' . $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']) . ' | ' . "\n";
echo ' ' . "\n";
}
?>
|
|
|
totals); $i < $n; $i++) {
echo ' ' . "\n" .
' | ' . $order->totals[$i]['title'] . ' | ' . "\n" .
' ' . $order->totals[$i]['text'] . ' | ' . "\n" .
' ' . "\n";
}
?>
|
'; ?> |
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
| info['orders_status']); ?> |
| |
|
|
|
|
|
|
| ' . tep_image_button('button_invoice_avoir.gif', IMAGE_ORDERS_INVOICE_AVOIR) . ' ' . tep_image_button('button_back.gif', IMAGE_BACK) . ''; ?> |
|