Jump to content

olsonsp4c

Members
  • Content count

    545
  • Joined

  • Last visited

Posts posted by olsonsp4c


  1. Does this think even work on the latest RC1 not supporting php 5?...........Honestly I ran into a tep_draw_textarea_field undedefined problem to a file in /admin/file_manager.php on line 164.......and there is nothing in the instruction that even come close to editing that file.

     

    Any suggestions?........I really dont think I skipped a step but its possible as I have read in this forum a few times now.

     

    Thanks,

    Tim

     

    this error doesn't make sense to me - having file manager is a security risk, I deleted the file altogether and removed all references to it in the admin.


  2. OK,

     

    I figured out some issues - to have the proper order number show up in the order email:

     

    catalog/checkout_process.php should look like this:

      $email_order = EMAIL_TEXT_GREETING . "\n" .
    			 EMAIL_SEPARATOR . "\n" .
    			 STORE_NAME . EMAIL_INVOICE . "\n" .
    			 EMAIL_SEPARATOR . "\n" . 
    			 EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .
    //Tracking contribution begin
    			 EMAIL_TEXT_INVOICE_URL . ' ' . "<a HREF='" . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL') . "'>" .  'order_id=' . $insert_id . "</a>\n" .
    //Tracking contribution end

     

    paypal_ipn.php should look like this:

    	  $email_order = EMAIL_TEXT_GREETING . "\n" .
    				 EMAIL_SEPARATOR . "\n" .
    				 STORE_NAME . EMAIL_INVOICE . "\n" . 
    				 EMAIL_SEPARATOR . "\n" .
    				 EMAIL_TEXT_ORDER_NUMBER . ' ' . $order_id . "\n" .
    //Tracking contribution begin
    				 EMAIL_TEXT_INVOICE_URL . ' ' . "<a HREF='" . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $order_id, 'SSL') . "'>" .  'order_id=' . $order_id . "</a>\n" .
    //Tracking contribution end

     

    For the requested "Order Number: 2202":

      $email_order = EMAIL_TEXT_GREETING . "\n" .
    			 EMAIL_SEPARATOR . "\n" .
    			 STORE_NAME . EMAIL_INVOICE . "\n" .
    			 EMAIL_SEPARATOR . "\n" . 
    //Tracking contribution begin
    			 EMAIL_TEXT_ORDER_NUMBER . ' ' . "<a HREF='" . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, $insert_id, 'SSL') . "'>" . $insert_id . "</a>\n" .
    //Tracking contribution end

     

    To fix the "<br>" that shows up after USPS tracking number only - catalog/admin/orders.php it should look like this (removed the "\n" after "noblanks") - same edit for Order Editor Contribution catalog/admin/edit_orders.php:

    			if ($usps_track_num == null) {
    		  $usps_text = '';
    		 }else{
    		  $usps_text = 'USPS: ';
    		  $usps_track_num_noblanks = str_replace(' ', '', $usps_track_num);
    		  $usps_link = 'http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=' . $usps_track_num_noblanks;
    		  $usps_track = '<a target="_blank" href="' . $usps_link . '">' . $usps_track_num . '</a>' . "\n";
    		}

     

    		  $usps_text = 'USPS: ';
    	  $usps_track_num_noblanks = str_replace(' ', '', $usps_track_num);
    	  $usps_link = 'http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=' . $usps_track_num_noblanks;
    	  $usps_track = '<a target="_blank" href="' . $usps_link . '">' . $usps_track_num . '</a>' . "\n";

     

    I think this updates this for RC1 - I have it fully functional in every aspect in RC1 on my website...

     

    Let me know of other bugs.

     

    Scott


  3. Actually, since I posted that I found out that this order works for other payment modules being used at the same time as A Net:

     

    require(DIR_WS_CLASSES . 'order_total.php');

    $order_total_modules = new order_total;

     

    $order_totals = $order_total_modules->process();

     

    // load the before_process function from the payment modules

    $payment_modules->before_process();

     

    To make A Net work with that setting in checkout_process and with CCGV(trad) and the osCommerce Pay Pal IPN make these few changes to the osCommerce Pay Pal IPN:

     

    in includes/modules/payment/paypal_ipn.php

     

    In the before_process function add these entries after $order,

     

    $order_totals, $order_total_modules,

     

    and then comment out or remove these lines (as shown), just a few lines below the above:

     

    //include(DIR_WS_CLASSES . 'order_total.php');

    //$order_total_modules = new order_total;

    //$order_totals = $order_total_modules->process();

     

    Now A Net works with other payment modules, including the osCommerce Pay Pal IPN, and CCGV(trad).

     

    Vger

     

    Thanks for this Vger, it just solved a headache I'd been having. Also, thanks for AIM - great work!

     

    Scott


  4. Don't know if this will work for everyone, but it certainly worked for me:

     

    In includes/functions/sessions.php

    if you find the following code

     

    function tep_session_register($variable) {

    global $session_started;

     

    if ($session_started == true) {

    if (PHP_VERSION < 4.3) {

    return session_register($variable);

    } else {

    if (isset($GLOBALS[$variable])) {

    $_SESSION[$variable] =& $GLOBALS[$variable];

    } else {

    $_SESSION[$variable] = null;

    }

    $GLOBALS[$variable] =& $_SESSION[$variable];

    }

    }

     

    return false;

    }

     

    then replace it with

     

    function tep_session_register($variable) {

    global $session_started;

     

    if ($session_started == true) {

    return session_register($variable);

    } else {

    return false;

    }

    }

     

    Haven't found any adverse effects yet but ... use at your own discretion

    (my site is very, VERY heavily modded, so it may not apply to all)

     

    Thanks Tony and Laura for the replies and esp. to Tony for the fix. It works; however, I'd recommend just commenting out the code you have to replace with "//" before each line because these were changes to sessions.php made by RC1 (the fix reverts back to the old MS2 code pretty much) - so, there will have to a more permanent fix in the future that works with RC1. Thanks and merry Christmas to you all as well.

     

    Scott

    olsonsp4c


  5. I don't know if this helps with the Parcel post quotes being higher but I found two errors in the latest uploads of this contribution. Line 95 reads

    if($shipping_pounds > 35 || $shipping_ounces < 6){

    and it should read

    if($shipping_pounds > 35 || ($shipping_pounds == 0 && $shipping_ounces < 6)){

    Line 280 reads

    default:		   $usps_server = 'testing.shippingapis.com';
    					   $api_dll = 'ShippingAPITest.dll';

     

    and it should read

    default:		   $usps_server = 'stg-production.shippingapis.com';
    					   $api_dll = 'shippingapi.dll';

    Ignore me if I'm wrong, but I think that the top line should help as it is part of the "ismachinable" test

    Thanks for the contribution and the updates to keep the USPS in line.

    Christian

     

    Thanks Christian, that fix worked on my website for more accurate parcel post quotes as well... the funny thing is that if you go to the usps website, their own code is messed up because it consistently quotes parcel post higher than priority mail as well. my guess is that they will eventually fix this and then the code will once again need to be modded.

     

    Scott


  6. I have created a coupon in admin but when I try to test it during checkout this is what happens:

     

    I add a product to the cart and go to checkout.

    I select a shipping method and click on Continue.

    I select a payment amount and enter the coupon code in the redeem box and click Continue.

    On the confirmation page, the discount does not appear, however, if I click the Back button and go back to the payment page, reselect a payment type and retype the coupon code and then click Continue, the discount does appear properly.

     

    It is like there is a variable that is getting set out of order somewhere, I just can't find it.

     

    Anyone have any suggestions or a fix for this?

     

    Scott


  7. I am having a problem with the checkout function.

     

    I have created a coupon in admin but when I try to test it during checkout this is what happens:

     

    I add a product to the cart and go to checkout.

    I select a shipping method and click on Continue.

    I select a payment amount and enter the coupon code in the redeem box and click Continue.

    On the confirmation page, the discount does not appear, however, if I click the Back button and go back to the payment page, reselect a payment type and retype the coupon code and then click Continue, the discount does appear properly.

     

    It is like there is a variable that is getting set out of order somewhere, I just can't find it.

     

    Anyone have any suggestions or a fix for this?

     

    Thanks,

    Glenn

     

    I am having this exact issue and it is frustrating customers. Does anyone have an idea how to remedy this? Thanks!

     

    Scott


  8. OK everybody, I don't know if anyone else is still getting this issue, but my Parcel Post quotes are still higher than both 1st Class quotes and Priority Mail quotes. I tried the "machinable" set to true fix and it didn't fix it for me for some reason. Any thoughts? Since our store only offers USPS shipping, I'd love to get this quoted properly, might frustrate potential customers too...

     

    thanks!

     

    Scott


  9. Hello,

     

    Thanks for the ccgv contribution - I installed it but got this message on the catalog site:

     

    Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.

     

    Can you help me? How do i enable the register_globals?

     

    I appreciate your assistance.

     

    Laura

     

    Laura,

     

    There are several ways to do this, one is by contacting support for your webhost, that would be the easiest - they can do it for you quickly and easily, generally...

     

    Below are several possibilities I found from a simple search on the forum:

     

    Here are a couple of things to try.

     

    Try locating your PHP.ini file - it's not in your HTML directories, look for it higher up. Sometimes in a directory called /etc

     

    Or, create your own PHP.ini file and put it in your /catalog directory. Put the following line in it

     

     

    register_globals = on

     

     

    Last and best - since having Register Globals set to on creates a security risk, you might look into a contribution that manages your register globals.

     

    http://www.oscommerce.com/community/contributions,2097

     

     

     

     

    the php.ini can be a number of locations and depends on how your server has been set up. Most of the time you will find it within the php folder. Once you have found it, open it in a editor and do a search for "globals" and you will find it.

     

    Most of the time there is a load of comment text telling you what to do so you need to find the line that actually begins with register etc and alter it.

     

    Once changed you will need to restart the webserver to make sure that the changes are refelected.

     

    There are a couple of other ways to do it as well.

     

    If you have a .htaccess file in the root of your domain you could add:

     

    php_value register_globals=on

    And as long as your web server allows it the change will be made at your domain level.

     

    One other way if you want to do this for individual scripts your could add:

     

    <?php
    ini_set ('register_globals', 1);
    ?>

     

    but if you do this make sure that these lines are the first lines in the script.

     

    Do bare in mind though that this last option is just for individual files and not the entire site.

     

     

     

    The below is actually from Vger:

     

    Your hosting provider won't enable Register Globals on the server just so you can use them on your osCommerce website.

     

    You can either:

     

    1. Create a new text document on your PC desktop and rename it php.ini and add this to it:

     

    register_globals = On

     

     

    then upload it to the root of your website via FTP, or ....

     

    2. Create a text document on your PC desktop and rename it txt.htaccess and put this code in it (Apache servers only):

     

    php_flag register_globals on

     

     

    Upload it to the root of your website via FTP and then use FTP to 'Rename' the file to just .htaccess

     

     

     

    hope this helps...

     

    Scott


  10. For those still getting the dreaded parse error after all the sql updates and all, I discovered the issue, at least on my mysql 4 server. it was not inserting the sql completely, probably due to mysql 4 limitations. So, brace yourself - you'll have to go into phpMyAdmin and select the "configuration" table and find the "MODULE_SHIPPING_USPS_TYPES_INTL" configuration key and edit it manually. Now, edit the set_function so that it reads exactly as follows:

     

    tep_cfg_select_multioption(array('GLOBAL EXPRESS', 'GLOBAL EXPRESS NON-DOC RECT', 'GLOBAL EXPRESS NON-DOC NON-RECT', 'EXPRESS MAIL INT', 'EXPRESS MAIL INT FLAT RATE ENV', 'PRIORITY MAIL INT', 'PRIORITY MAIL INT FLAT RATE ENV', 'PRIORITY MAIL INT FLAT RATE BOX', 'FIRST-CLASS MAIL INT'),

     

    hope this helps.

     

    Scott


  11. Hello everybody,

     

    First of all, thanks to Vger for an awesome contribution. I have CCGV(trad) fully functioning in RC1. Here's the changes I had to make:

     

    I fixed a few things pre-RC1:

     

    1st I fixed the Confirm Button when releasing a GV in the Admin which was using a custom button rather than stock OSC button.

     

    In admin/gv_queue.php around line 143 find:

     

    	  $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link('gv_queue.php','action=confirmrelease&gid='.$gInfo->unique_id,'NONSSL').'">'.tep_image_button('button_confirm_red.gif', IMAGE_CONFIRM) . '</a> <a href="' . tep_href_link('gv_queue.php','action=cancel&gid=' . $gInfo->unique_id,'NONSSL') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');

     

    Replace with:

     

    	  $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link('gv_queue.php','action=confirmrelease&gid='.$gInfo->unique_id,'NONSSL').'">'.tep_image_button('button_confirm.gif', IMAGE_CONFIRM) . '</a> <a href="' . tep_href_link('gv_queue.php','action=cancel&gid=' . $gInfo->unique_id,'NONSSL') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');

     

    2nd the breadcrumb was not formatting properly after sending a GV as a user.

     

    In /includes/filenames.php add:

     

      define('FILENAME_GV_SEND', 'gv_send.php');

     

    In /gv_send.php about line 90 (at least this is how I did it, there might be reasons not to do this):

     

    //  $breadcrumb->add(NAVBAR_TITLE);
     $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_GV_SEND));

     

    3rd the SQL error in RC1 - I get the error when adding a COUPON in the Admin or when sending a GV in admin and in catalog when sending a GV - note that I've commented out the old code (I'm not sure why this works, but it seems to work, I thought I'd save you having to type a bunch of stuff over and over again):

     

    Here's the error I was getting:

     

    Warning: mysql_insert_id(): supplied argument is not a valid MySQL-Link resource in /home/xxxx/www/www/includes/functions/database.php on line 124

     

    Here's all the patches:

     

    When adding a coupon admin/coupon_admin.php about line 144:

     

    		} else {  
    	  $query = tep_db_perform(TABLE_COUPONS, $sql_data_array);
    //		  $insert_id = tep_db_insert_id($query);
    	  $insert_id = tep_db_insert_id();

     

    When sending a GV from user account /gv_send.php about line 64:

     

    	  $gv_query=tep_db_query("insert into " . TABLE_COUPONS . " (coupon_type, coupon_code, date_created, coupon_amount) values ('G', '" . $id1 . "', NOW(), '" . $HTTP_POST_VARS['amount'] . "')");
    //	  $insert_id = tep_db_insert_id($gv_query);
      $insert_id = tep_db_insert_id();
      $gv_query=tep_db_query("insert into " . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, sent_lastname, emailed_to, date_sent) values ('" . $insert_id . "' ,'" . $customer_id . "', '" . addslashes($gv_customer['customers_firstname']) . "', '" . addslashes($gv_customer['customers_lastname']) . "', '" . $HTTP_POST_VARS['email'] . "', now())");

     

    When sending a GV from Admin in admin/gv_mail.php about lines 61 & 82:

     

    	  // Now create the coupon main and email entry
      $insert_query = tep_db_query("insert into " . TABLE_COUPONS . " (coupon_code, coupon_type, coupon_amount, date_created) values ('" . $id1 . "', 'G', '" . $HTTP_POST_VARS['amount'] . "', now())");
    //	  $insert_id = tep_db_insert_id($insert_query);
      $insert_id = tep_db_insert_id();
      $insert_query = tep_db_query("insert into " . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent) values ('" . $insert_id ."', '0', 'Admin', '" . $mail['customers_email_address'] . "', now() )");

     

    	  // Now create the coupon email entry
      $insert_query = tep_db_query("insert into " . TABLE_COUPONS . " (coupon_code, coupon_type, coupon_amount, date_created) values ('" . $id1 . "', 'G', '" . $HTTP_POST_VARS['amount'] . "', now())");
    //	  $insert_id = tep_db_insert_id($insert_query);
      $insert_id = tep_db_insert_id($insert_query);
      $insert_query = tep_db_query("insert into " . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent) values ('" . $insert_id ."', '0', 'Admin', '" . $HTTP_POST_VARS['email_to'] . "', now() )");

     

    Hope this is helpful. I've passed these on to Vger and thought I'd pass them on here as well

     

    Scott

    olsonsp4c


  12. I've just experience a new problem

    I'm implemented Buysafe module.

    And the 1st order I received with buysafe, when i try to update the order with new status it automatically takes me to the store login page.

     

    I will need more information than this as I know nothing about the Buysafe mod. It may not have to do with my contrib because you could update the status of an order with stock code. My guess is that there is a conflict with the Buysafe module and stock osC code for updating an order (since I just borrowed their code and "enhanced" it with the extra tracking boxes, the stock osC status update code was not modded). So, it should more than likely be posted under either the Buysafe contrib support or General support.

     

    thanks!

     

    Scott


  13. To everybody,

     

    For some reason, this bulletin board quit sending me notifications when somebody posts for help, so I've been completely unaware of the issues. I deeply apologize. Also, I've not tested my contrib for RC1. I, myself, have updated our store to RC1 and haven't had problems thus far; however, it remains to be seen if it will still work. I'm short on time nowadays, so any help to streamline of mod this contrib would be appreciated.

     

    Scott


  14. Hello,

     

    I hope someone can help, as the mod seems fantastic for us......

     

    We installed the mods and followed all instructions. After installed we ran a test order and the following happened:

     

    We receive the order confirmation email but the order never updated in the admin > orders list (admin/orders.php).

     

    We can update old orders and we receive the email with tracking links perfectly, but new orders do not post? Any suggestions is appreciated.

     

    thx,

     

    ejs

     

    The problem was in Step 5 - please check the below changes in admin/orders.php:

     

    ------------
    ***Step 5***
    ------------
    
    ***If you are using the Order Editor Contribution, you may alternately use the alternate "Step 5" for integrating this step into Order Editor.  This mod is in the "mods" folder.***
    
    catalog/admin/orders.php
    
    Find this:
    
    	$comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
    
    And put this below it:
    
    //Tracking contribution begin
    	$ups_track_num = tep_db_prepare_input($HTTP_POST_VARS['ups_track_num']);
    	$usps_track_num = tep_db_prepare_input($HTTP_POST_VARS['usps_track_num']);
    	$fedex_track_num = tep_db_prepare_input($HTTP_POST_VARS['fedex_track_num']);
    	$fedex_freight_track_num = tep_db_prepare_input($HTTP_POST_VARS['fedex_freight_track_num']);
    	$dhl_track_num = tep_db_prepare_input($HTTP_POST_VARS['dhl_track_num']);
    //Tracking contribution end
    
    
    Find this:
    
    	$check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");
    
    And replace with this:
    
    //Tracking contribution begin
    	$check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, fedex_track_num, ups_track_num, usps_track_num, fedex_freight_track_num, dhl_track_num, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");
    //Tracking contribution end
    
    
    ***Note: the only change was the addition of fedex_track_num, ups_track_num, usps_track_num, fedex_freight_track_num, dhl_track_num, to the query.

     

    However, my guess is that the following is missing in this Step:

     

    Find this:
    
    	  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;
    	}
    
    And place this below it:
    
    //Tracking contribution begin
    	tep_db_query("update " . TABLE_ORDERS . " set ups_track_num = '" . tep_db_input($ups_track_num) . "' where orders_id = '" . tep_db_input($oID) . "'");
    	tep_db_query("update " . TABLE_ORDERS . " set usps_track_num = '" . tep_db_input($usps_track_num) . "' where orders_id = '" . tep_db_input($oID) . "'");
    	tep_db_query("update " . TABLE_ORDERS . " set fedex_track_num = '" . tep_db_input($fedex_track_num) . "' where orders_id = '" . tep_db_input($oID) . "'");
    	tep_db_query("update " . TABLE_ORDERS . " set fedex_freight_track_num = '" . tep_db_input($fedex_freight_track_num) . "' where orders_id = '" . tep_db_input($oID) . "'");
    	tep_db_query("update " . TABLE_ORDERS . " set dhl_track_num = '" . tep_db_input($dhl_track_num) . "' where orders_id = '" . tep_db_input($oID) . "'");
    	$order_updated = true;
    //Tracking contribution end

     

    Scott


  15. Does anyone know about this problem above????

     

    For the formatting problem, check admin/orders.php - it should read as follows:

     

    //Tracking contribution begin
    	  $customer_notified = '0';
    	  if ($HTTP_POST_VARS['notify'] == 'on' & ($ups_track_num == '' & $fedex_track_num == '' & $usps_track_num == '' & $fedex_freight_track_num == '' & $dhl_track_num == '' ) ) {
    		$notify_comments = '';
    		if ($HTTP_POST_VARS['notify_comments'] == 'on') {
    		  $notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "\n";
    		  if ($comments == null)
    			$notify_comments = '';
    					}
    
    		$email = 'Dear ' . $check_status['customers_name'] . ',' . "\n\n" . STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . (int)$oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . (int)$oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);
    		tep_mail($check_status['customers_name'], $check_status['customers_email_address'], STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1. (int)$oID . EMAIL_TEXT_SUBJECT_2 . $orders_status_array[$status], $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
    		$customer_notified = '1';
    
     }else   if ($HTTP_POST_VARS['notify'] == 'on' & ($ups_track_num == '' or $fedex_track_num == '' or $usps_track_num == '' or $fedex_freight_track_num == '' or $dhl_track_num == '' ) ) {
    		$notify_comments = '';
    		if ($HTTP_POST_VARS['notify_comments'] == 'on') {
    		  $notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "\n";
    		  if ($comments == null)
    			$notify_comments = '';
    		}
    		if ($ups_track_num == null) {
    		  $ups_text = '';
    		 }else{
    		  $ups_text = 'UPS: ';
    		  $ups_track_num_noblanks = str_replace(' ', '', $ups_track_num);
    		  $ups_link = 'http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=' . $ups_track_num_noblanks . '&InquiryNumber2=&InquiryNumber3=&InquiryNumber4=&InquiryNumber5=&TypeOfInquiryNumber=T&UPS_HTML_Version=3.0&IATA=us&Lang=en&submit=Track+Package ' . "\n";
    		}
    		if ($usps_track_num == null) {
    		  $usps_text = '';
    		 }else{
    		  $usps_text = 'USPS: ';
    		  $usps_track_num_noblanks = str_replace(' ', '', $usps_track_num);
    		  $usps_link = 'http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=' . $usps_track_num_noblanks . "\n";
    		} 
    		if ($fedex_track_num == null) {
    		  $fedex_text = '';
    		 }else{
    		  $fedex_text = 'Fedex: ';
    		  $fedex_track_num_noblanks = str_replace(' ', '', $fedex_track_num);
    		  $fedex_link = 'http://www.fedex.com/Tracking?tracknumbers=' . $fedex_track_num_noblanks . '&action=track&language=english&cntry_code=us' . "\n";
    		}
    		if ($fedex_freight_track_num == null) {
    		  $fedex_freight_text = '';
    		 }else{
    		  $fedex_freight_text = 'FedEx Freight: ';
    		  $fedex_freight_track_num_noblanks = str_replace(' ', '', $fedex_freight_track_num);
    		  $fedex_freight_link = 'http://www.fedex.com/Tracking?tracknumbers=' . $fedex_freight_track_num_noblanks . '&action=track&language=english&cntry_code=us' . "\n";
    		}
    		if ($dhl_track_num == null) {
    		  $dhl_text = '';
    		 }else{
    		  $dhl_text = 'DHL: ';
    		  $dhl_track_num_noblanks = str_replace(' ', '', $dhl_track_num);
    		  $dhl_link = 'http://track.dhl-usa.com/atrknav.asp?ShipmentNumber=' . $dhl_track_num_noblanks . '&action=track&language=english&cntry_code=us' . "\n";
    		}
    
    		$email = 'Dear ' . $check_status['customers_name'] . ',' . "\n\n" . STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . (int)$oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . (int)$oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n\n" . EMAIL_TEXT_TRACKING_NUMBER . "\n" . $usps_text . $usps_link . $ups_text . $ups_link . $fedex_text . $fedex_link . $fedex_freight_text . $fedex_freight_link . $dhl_text . $dhl_link . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);
    		tep_mail($check_status['customers_name'], $check_status['customers_email_address'], STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1. (int)$oID . EMAIL_TEXT_SUBJECT_2 . $orders_status_array[$status], $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
    		$customer_notified = '1';
    
     }else   if ($HTTP_POST_VARS['notify'] == 'on' & (tep_not_null($ups_track_num) & tep_not_null($fedex_track_num) & tep_not_null($usps_track_num) & tep_not_null($fedex_freight_track_num) & tep_not_null($dhl_track_num) ) ) {
    		$notify_comments = '';
    		$ups_text = 'UPS: ';
    		$ups_track_num_noblanks = str_replace(' ', '', $ups_track_num);
    		$ups_link = 'http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=' . $ups_track_num_noblanks . '&InquiryNumber2=&InquiryNumber3=&InquiryNumber4=&InquiryNumber5=&TypeOfInquiryNumber=T&UPS_HTML_Version=3.0&IATA=us&Lang=en&submit=Track+Package ' . "\n";
    		$usps_text = 'USPS: ';
    		$usps_track_num_noblanks = str_replace(' ', '', $usps_track_num);
    		$usps_link = 'http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=' . $usps_track_num_noblanks . "\n";
    		$fedex_text = 'Fedex: ';
    		$fedex_track_num_noblanks = str_replace(' ', '', $fedex_track_num);
    		$fedex_link = 'http://www.fedex.com/Tracking?tracknumbers=' . $fedex_track_num_noblanks . '&action=track&language=english&cntry_code=us' . "\n";
    		$fedex_freight_text = 'FedEx Freight: ';
    		$fedex_freight_track_num_noblanks = str_replace(' ', '', $fedex_freight_track_num);
    		$fedex_freight_link = 'http://www.fedex.com/Tracking?tracknumbers=' . $fedex_freight_track_num_noblanks . '&action=track&language=english&cntry_code=us' . "\n";
    		$dhl_text = 'DHL: ';
    		$dhl_track_num_noblanks = str_replace(' ', '', $dhl_track_num);
    		$dhl_link = 'http://track.dhl-usa.com/atrknav.asp?ShipmentNumber=' . $dhl_track_num_noblanks . '&action=track&language=english&cntry_code=us' . "\n";
    		if ($HTTP_POST_VARS['notify_comments'] == 'on') {
    		  $notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "\n";
    		  if ($comments == null)
    			$notify_comments = '';
    		}
    
    		$email = 'Dear ' . $check_status['customers_name'] . ',' . "\n\n" . STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . (int)$oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . (int)$oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n\n" . EMAIL_TEXT_TRACKING_NUMBER . "\n" . $usps_text . $usps_link . $ups_text . $ups_link . $fedex_text . $fedex_link . $fedex_freight_text . $fedex_freight_link . $dhl_text . $dhl_link . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);
    		tep_mail($check_status['customers_name'], $check_status['customers_email_address'], STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1 . (int)$oID . EMAIL_TEXT_SUBJECT_2 . $orders_status_array[$status], $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
    		$customer_notified = '1';
    	  }
    //Tracking contribution end

     

    Scott


  16. I am having this problem to, when I enter a tracking number then hit enter. The order gets deleted.

     

    I have order editor installed and when I use this page instead to update/add a trcking number it works fine.

     

    I also ran into the delete_confirm problem so I removed break; and added a closing bracket to get it to move on.

     

    Any help with this is appreciated.

     

    The problem was solved I believe... it was a problem with brackets caused by other contributions that had been added, so, best to play around with it a bit :)

     

    Scott


  17. Forgive me if this has already been answered. I googled it and found no help. I installed everything and it works a-ok! However, I need to track more than one UPS number. I tried separating the numbers with a comma or just a space, but it bungles the UPS url.

    Thanks in advance for any help!

     

    I would love to have the contrib take multiple numbers; however, I don't know how to make this work at this point. Any help would be appreciated :)

     

    Scott


  18. The instructions for integrating it with Order Editor are included in the package. It doesn't work with the latest version of order Editor, but works with version 2.9.4.

     

    There is also a mod that creates links that are clickable with HTML on. That is the part I'm having trouble with now. It creates the links, but the order Id is Always =0 so the link is useless.

     

    Anyone have it working correctly with that mod installed?

     

    I noticed this as well when I wrote the code... a value isn't being passed properly and I'm unsure how to fix it. I haven't fixed it because the link takes you to the account login page anyways and the customer can see their invoice once they login... If you have a fix, please message me.

     

    Scott


  19. Hi. This is a cool contrib - I hope my question (or suggestion) has not already been discussed.

     

    I use osC with the Multi-Vendor Shipping contrib, with the Order Editor for MVS. I have installed your tracking contrib and it works good... except with the order editor for mvs contrib, which I have not setup yet.

     

    Is there any way to be able to send order updates with multiple tracking numbers for one carrier rather than just one number per carrier? Maybe be able to add number,number,number rather than just number, and have it send seperate links for each tracking number?

     

    Thanks.

     

    Not at this point, I'd love this to be the case, but I don't know how to code it :)

     

    thanks.

     

    Scott

×