Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I have a question about xml tracking 2.0


saho

Recommended Posts

For quite sometime I have been using xml tracking 2.0 and I loved it. One day it stopped working. My question is can I reprogram it to point to the UPS.com tracking page

Example: Rather than http://mystore.com/catalog/tracking.php?tracknum=etc. to my customers when I update to shipped could I send them to:

 

http://wwwapps.ups.com/etracking/tracking....A650R6034156????

 

Below I have the original code in the package and below that is my best guess at sending them to the new url.

Could someone take a look at it and suggest if it would work.

Thank you in advance for looking at this, I really appreciate it, at the moment tracking is not working.

 

I am using a June 2002 snapshot with ups xml tracking version2

 

--------------------------------------------------------------------

 

$customer_notified = '0';

if ($HTTP_POST_VARS['notify'] == 'on' & $ups_track_num == '' ) {

$email = STORE_NAME . "n" . EMAIL_SEPARATOR . "n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "nn" . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);

tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, nl2br($email), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

$customer_notified = '1';

}elseif ($HTTP_POST_VARS['notify'] == 'on' & tep_not_null($ups_track_num) ) {

$email = STORE_NAME . "n" . EMAIL_SEPARATOR . "n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "nn" . EMAIL_TEXT_TRACKING_NUMBER . ' ' . tep_catalog_href_link(FILENAME_CATALOG_TRACKING_NUMBER, 'action=track&tracknum=' . $ups_track_num, 'NONSSL') . "nn" . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);

tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, nl2br($email), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

$customer_notified = '1';

}

----------------------------------------------------------------------

Changed code

----------------------------------------------------------------------

 

Can I replace with this:

 

$customer_notified = '0';

if ($HTTP_POST_VARS['notify'] == 'on' & $ups_track_num == '' ) {

$email = STORE_NAME . "n" . EMAIL_SEPARATOR . "n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "nn" . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);

tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, nl2br($email), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

$customer_notified = '1';

}elseif ($HTTP_POST_VARS['notify'] == 'on' & tep_not_null($ups_track_num) ) {

$email = STORE_NAME . "n" . EMAIL_SEPARATOR . "n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "nn" . EMAIL_TEXT_TRACKING_NUMBER . ' ' . 'http://wwwapps.ups.com/etracking/tracking.cgi?tracknum=' . $ups_track_num, 'NONSSL') . "nn" . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);

tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, nl2br($email), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

$customer_notified = '1';

}

 

------------------------------------------------------------------------

 

Thank you

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...