admin/tracking_eboost
*/
require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_TRACKING_EBOOST);
$orders_tracking = "select tracking,date_purchased, customers_email_address from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'";
$orders_tracking_query = tep_db_query($orders_tracking);
$orders = tep_db_fetch_array($orders_tracking_query);
if(!empty($_POST['tracking'])) {
$oID = tep_db_prepare_input($_GET['oID']);
$tracking = tep_db_prepare_input($_POST['tracking']); // numero tracking
tep_db_query(" update " . TABLE_ORDERS . " set tracking = '" . tep_db_input($tracking) . "' where orders_id = '" . tep_db_input($oID) . "'");
tep_db_query(" update " . TABLE_ORDERS_STATUS_HISTORY . " set tracking_id = '" . tep_db_input($tracking) . "' where orders_id = '" . tep_db_input($oID) . "'");
$track = "
http://www.eboost.it/eboost?Action=Acti ... =-1&idLdv=";
$linkorder ="
http://www.lupinvvshop.com/account_hist ... ?order_id=";
$email_order = EMAIL_TEXT_TEXT . "\n\n" .
EMAIL_TEXT_ORDER_NUMBER . ' ' .$linkorder. $oID . "\n\n" .
EMAIL_TEXT_DATE_ORDERED . ' ' . $orders['date_purchased'] . "\n\n".
EMAIL_LINK_TRACKING . ' ' . tep_db_input($tracking) ."\n".
EMAIL_TEXT_ORDER_LINK . ' ' .$track . tep_db_input($tracking) . "\n\n" .
EMAIL_TEXT_END . ' ' ;
tep_mail('', $orders['customers_email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
// tep_mail('', STORE_OWNER_EMAIL_ADDRESS, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, $orders['customers_email_address']);
tep_redirect(tep_href_link("spedizioni.php?oID=". $oID , ''));
}
// lets start with the email confirmation
_______________
admin/spedizioni
*/
require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_TRACKING_EBOOST);
$orders_tracking = "select tracking,date_purchased, customers_email_address from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'";
$orders_tracking_query = tep_db_query($orders_tracking);
$orders = tep_db_fetch_array($orders_tracking_query);
if(!empty($_POST['tracking'])) {
$oID = tep_db_prepare_input($_GET['oID']);
$tracking = tep_db_prepare_input($_POST['tracking']); // numero tracking
tep_db_query(" update " . TABLE_ORDERS . " set tracking = '" . tep_db_input($tracking) . "' where orders_id = '" . tep_db_input($oID) . "'");
tep_db_query(" update " . TABLE_ORDERS_STATUS_HISTORY . " set tracking_id = '" . tep_db_input($tracking) . "' where orders_id = '" . tep_db_input($oID) . "'");
$track = "
http://www.eboost.it/eboost?Action=Acti ... =-1&idLdv=";
$email_order = STORE_NAME . "\n" .
EMAIL_SEPARATOR . "\n" .
EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" .
EMAIL_TEXT_DATE_ORDERED . ' ' . $orders['date_purchased'] . "\n\n".
EMAIL_LINK_TRACKING . ' ' . $track . tep_db_input($tracking) ."\n\n";
tep_mail('', $orders['customers_email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
// tep_mail('', STORE_OWNER_EMAIL_ADDRESS, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, $orders['customers_email_address']);
tep_redirect(tep_href_link("spedizioni.php?oID=". $oID , ''));
}
// lets start with the email confirmation
_____________________________
account_history_info
<?php
$statuses_query = tep_db_query("select os.orders_status_name, osh.date_added, osh.comments, osh.tracking_id from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh where osh.orders_id = '" . (int)$HTTP_GET_VARS['order_id'] . "' and osh.orders_status_id = os.orders_status_id and os.language_id = '" . (int)$languages_id . "' order by osh.date_added"); while ($statuses = tep_db_fetch_array($statuses_query)) {
$track=$statuses['tracking_id'];
echo ' <tr>' . "\n" .
' <td class="main" valign="top" width="70">' . tep_date_short($statuses['date_added']) . '</td>' . "\n" .
' <td class="main" valign="top" width="70">' . $statuses['orders_status_name'] . '</td>' . "\n" .
' <td class="main" valign="top">' . (empty($statuses['comments']) ? ' ' : nl2br(tep_output_string_protected($statuses['comments']))) . '</td>' . "\n" .
' </tr>' . "\n";
}
echo '<center><big>Codice di spedizione n°<a href=
http://www.eboost.it/eboost?Action=Acti ... '>'.$track .'</a>' . ' . Clicca sul numero di spedizione per visualizzarne lo stato <br></big></center>' ;
?>
</table></td>
</tr>
</table></td>
<?php