Results 1 to 10 of 1019

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Posts
    298
    Plugin Contributions
    0

    Default Re: Track Package from FedEx, UPS, Postal, DHL, etc..

    Here's what I ended up doing to make the emails work in my multilanguage shop. I don't use the sidebox, so sorry, I can't help there.

    For each of your languages, in admin/includes/languages/YOUR_LANGUAGE/order_status_email.php

    Add to the bottom (replace the defined text with your language as necessary):

    Code:
    define('TY_PT_1','Your');
    define('TY_PT_2','Tracking ID is');
    define('TY_PT_3','Click here');
    define('TY_PT_4','to track your package.<br /><br />If the above link does not work, copy the following URL address and paste it into your Web browser:<br/>');
    define('TY_PT_5','<br><br>It may take up to 24 hours for the tracking information to appear on the website.');
    In admin/includes/functions/extra_functions/common_orders_functions.php find // TY TRACKER 4 BEGIN

    Replace the whole section with this:

    Code:
    // TY TRACKER 4 BEGIN  ----------------------------------------------
    
      $status = $status_info->fields['orders_status_id'];
      $track_id1 = $status_info->fields['track_id1'];
      $track_id2 = $status_info->fields['track_id2'];
      $track_id3 = $status_info->fields['track_id3'];
      $track_id4 = $status_info->fields['track_id4'];
      $track_id5 = $status_info->fields['track_id5'];
    
      if (zen_not_null($status_info->fields['comments']) && $status_info->fields['comments'] != '' && $_POST['notify_comments'] == 'on') {
    
        $notify_comments = EMAIL_TEXT_COMMENTS_UPDATE . $status_info->fields['comments'] . "\n\n<br><br>";
    
      }
    
        if (zen_not_null($track_id1)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_1."\n".TY_PT_2.' '.$track_id1."\n\n<br/><br/> <a href=".CARRIER_LINK_1.$track_id1.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_1.$track_id1."\n".TY_PT_5."\n\n"; }
    
        if (zen_not_null($track_id2)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_2."\n".TY_PT_2.' '.$track_id2."\n\n<br/><br/> <a href=".CARRIER_LINK_2.$track_id2.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_2.$track_id2."\n".TY_PT_5."\n\n"; }
    
        if (zen_not_null($track_id3)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_3."\n".TY_PT_2.' '.$track_id3."\n\n<br/><br/> <a href=".CARRIER_LINK_3.$track_id3.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_3.$track_id3."\n".TY_PT_5."\n\n"; }
    
        if (zen_not_null($track_id4)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_4."\n".TY_PT_2.' '.$track_id4."\n\n<br/><br/> <a href=".CARRIER_LINK_4.$track_id4.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_4.$track_id4."\n".TY_PT_5."\n\n"; }
    
        if (zen_not_null($track_id5)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_5."\n".TY_PT_2.' '.$track_id5."\n\n<br/><br/> <a href=".CARRIER_LINK_5.$track_id5.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_5.$track_id5."\n".TY_PT_5."\n\n"; }
    
    // END TY TRACKER 4 -------------------------------------------------
    Last edited by abcisme; 15 Nov 2012 at 02:21 PM.

  2. #2
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Track Package from FedEx, UPS, Postal, DHL, etc..

    You need to be clear about which version of TYPT this change applies to as the most recent versions no longer have an admin/includes/functions/extra_functions/common_orders_functions.php file.

    That said, thanks for sharing your solution..
    Quote Originally Posted by abcisme View Post
    Here's what I ended up doing to make the emails work in my multilanguage shop. I don't use the sidebox, so sorry, I can't help there.

    For each of your languages, in admin/includes/languages/YOUR_LANGUAGE/order_status_email.php

    Add to the bottom (replace the defined text with your language as necessary):

    Code:
    define('TY_PT_1','Your');
    define('TY_PT_2','Tracking ID is');
    define('TY_PT_3','Click here');
    define('TY_PT_4','to track your package.<br /><br />If the above link does not work, copy the following URL address and paste it into your Web browser:<br/>');
    define('TY_PT_5','<br><br>It may take up to 24 hours for the tracking information to appear on the website.');
    In admin/includes/functions/extra_functions/common_orders_functions.php find // TY TRACKER 4 BEGIN

    Replace the whole section with this:

    Code:
    // TY TRACKER 4 BEGIN  ----------------------------------------------
    
      $status = $status_info->fields['orders_status_id'];
      $track_id1 = $status_info->fields['track_id1'];
      $track_id2 = $status_info->fields['track_id2'];
      $track_id3 = $status_info->fields['track_id3'];
      $track_id4 = $status_info->fields['track_id4'];
      $track_id5 = $status_info->fields['track_id5'];
    
      if (zen_not_null($status_info->fields['comments']) && $status_info->fields['comments'] != '' && $_POST['notify_comments'] == 'on') {
    
        $notify_comments = EMAIL_TEXT_COMMENTS_UPDATE . $status_info->fields['comments'] . "\n\n<br><br>";
    
      }
    
        if (zen_not_null($track_id1)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_1."\n".TY_PT_2.' '.$track_id1."\n\n<br/><br/> <a href=".CARRIER_LINK_1.$track_id1.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_1.$track_id1."\n".TY_PT_5."\n\n"; }
    
        if (zen_not_null($track_id2)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_2."\n".TY_PT_2.' '.$track_id2."\n\n<br/><br/> <a href=".CARRIER_LINK_2.$track_id2.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_2.$track_id2."\n".TY_PT_5."\n\n"; }
    
        if (zen_not_null($track_id3)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_3."\n".TY_PT_2.' '.$track_id3."\n\n<br/><br/> <a href=".CARRIER_LINK_3.$track_id3.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_3.$track_id3."\n".TY_PT_5."\n\n"; }
    
        if (zen_not_null($track_id4)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_4."\n".TY_PT_2.' '.$track_id4."\n\n<br/><br/> <a href=".CARRIER_LINK_4.$track_id4.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_4.$track_id4."\n".TY_PT_5."\n\n"; }
    
        if (zen_not_null($track_id5)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_5."\n".TY_PT_2.' '.$track_id5."\n\n<br/><br/> <a href=".CARRIER_LINK_5.$track_id5.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_5.$track_id5."\n".TY_PT_5."\n\n"; }
    
    // END TY TRACKER 4 -------------------------------------------------
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #3
    Join Date
    Jun 2006
    Posts
    298
    Plugin Contributions
    0

    Default Re: Track Package from FedEx, UPS, Postal, DHL, etc..

    Quote Originally Posted by DivaVocals View Post
    You need to be clear about which version of TYPT this change applies to as the most recent versions no longer have an admin/includes/functions/extra_functions/common_orders_functions.php file.

    That said, thanks for sharing your solution..
    Eek. Sorry! I think it was actually the version included in SuperOrders 3.0. I'm running ZC v1.3.9h.

 

 

Similar Threads

  1. v150 Is there a FedEx plugin to quote on package size and postal code/zone?
    By Music Man in forum Addon Shipping Modules
    Replies: 7
    Last Post: 3 Aug 2014, 10:30 PM
  2. UPS/DHL shipping in Europe
    By DML73 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 29 Jan 2009, 09:43 PM
  3. what is the track your package url?
    By keylesslocks in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Aug 2008, 06:49 PM
  4. going from small package to large package
    By luna_99 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 19 Nov 2007, 02:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg