Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Adding Media Mail Transit time (7 - 10 days)

    I ship almost exclusively media mail in the US, I notice the transit time is not listed like the other methods (first class, priority etc...)

    How can I add (7 - 10 days) next to "media mail" in the shipping pop up estimate and checkout shipping page?

    Can't find the file with the developer tool kit, and have looked through the obvious english files....

    where is it?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Adding Media Mail Transit time (7 - 10 days)

    You would need to edit the shipping module:
    /includes/modules/shipping/usps.php

    and locate the lines around 191 to 192 that read:
    PHP Code:
              // BOF: UPS USPS
              
    $title = ((isset($this->types[$type])) ? $this->types[$type] : $type);
              if(
    in_array('Display transit time'explode(', 'MODULE_SHIPPING_USPS_OPTIONS)))    $title .= $transittime[$type]; 
    and change to read:
    PHP Code:
              // BOF: UPS USPS
              
    $title = ((isset($this->types[$type])) ? $this->types[$type] : $type);
              if(
    in_array('Display transit time'explode(', 'MODULE_SHIPPING_USPS_OPTIONS)))    $title .= $transittime[$type];
              echo 
    $title '<br>';
              if (
    $title == 'Media Mail') {
                
    $title .= ' (7-10 days)';
              } 
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: Adding Media Mail Transit time (7 - 10 days)

    Thank you for the code!

    It works, but seems to generate two different groups of usps shipping options and travel time.

    The old usps shipping options are located in the top left of both pages (media with no transit time) and the new usps shipping options in the correct place with the media mail transit time.

    did I leave something out?

    PHP Code:
         // BOF: UPS USPS 
              
    $title = ((isset($this->types[$type])) ? $this->types[$type] : $type); 
              if(
    in_array('Display transit time'explode(', 'MODULE_SHIPPING_USPS_OPTIONS)))    $title .= $transittime[$type]; 
             echo 
    $title '<br>'
              if (
    $title == 'Media Mail') { 
                
    $title .= ' (7-10 days)'
              } 

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Adding Media Mail Transit time (7 - 10 days)

    Silly me ... take out that extra echo I put in there when testing it ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: Adding Media Mail Transit time (7 - 10 days)

    Smokin'!

    Works great now! thank you for the coding!

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Adding Media Mail Transit time (7 - 10 days)

    Most welcome ... remember us when you are rich and famous ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v139h USPS Shipping Module - No estimated transit time for International shipments
    By zaaep005 in forum Addon Shipping Modules
    Replies: 23
    Last Post: 18 Nov 2017, 03:03 AM
  2. v139h USPS NEW version J transit time problem with OLD settings
    By WiccanWitch420 in forum Addon Shipping Modules
    Replies: 12
    Last Post: 4 Aug 2013, 11:25 PM
  3. Can we show number of transit days for UPS module during checkout?
    By peeceelee in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 5 Nov 2006, 07:49 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