Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Nov 2008
    Posts
    10
    Plugin Contributions
    0

    Default Remove the number of packages, weight and delivery ETA times - UPS XML

    I've searched every where and couldn't seem to find my answer. I just installed the UPS XML addon and everything is working fine, but I want to remove the number of packages and weight and also all the ETA times that are displayed when checking out. Any help would be appreciated.

    Thanks,
    Geoff
    Last edited by Kim; 16 Sep 2010 at 05:10 PM.

  2. #2
    Join Date
    Sep 2010
    Location
    SF Bay Area
    Posts
    54
    Plugin Contributions
    0

    Default Re: Remove the number of packages, weight and delivery ETA times - UPS XML

    I want the same exact thing. I have found where the code is but am not able to modify and make it work. It is found in the \includes\modules\shipping\upsxml.php. Here are the lines 241 to 245:


    if (DIMENSIONS_SUPPORTED) {

    $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $this->boxCount . ($this->boxCount > 1 ? ' pkg(s), ' : ' pkg, ') . $totalWeight . ' ' . strtolower($this->unit_weight) . ' total)');

    } else {

    $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $shipping_num_boxes . ($this->boxCount > 1 ? ' pkg(s) x ' : ' pkg x ') . number_format($shipping_weight,2) . ' ' . strtolower($this->unit_weight) . ' total)');
    }

    See if you can modify it.

  3. #3
    Join Date
    Jul 2009
    Posts
    22
    Plugin Contributions
    0

    Default Re: Remove the number of packages, weight and delivery ETA times - UPS XML

    Not sure if you solved this...

    To remove the packages and weight, including the first "UPS", just comment out those lines (241-245 on mine)

    Code:
     
                //if (DIMENSIONS_SUPPORTED) {
                //    $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $this->boxCount . ($this->boxCount > 1 ? ' pkg(s), ' : ' pkg, ') . $totalWeight . ' ' . strtolower($this->unit_weight) . ' total)');
                //} else {
                //    $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $shipping_num_boxes . ($this->boxCount > 1 ? ' pkg(s) x ' : ' pkg x ') . number_format($shipping_weight,2) . ' ' . strtolower($this->unit_weight) . ' total)');
                // }

    To leave that first "UPS" in there, this worked for me:

    Code:
              if (DIMENSIONS_SUPPORTED) {
                    $this->quotes = array('id' => $this->code, 'module' => $this->title  ); //.  ' (' . $this->boxCount . ($this->boxCount > 1 ? ' pkg(s), ' : ' pkg, ') . $totalWeight . ' ' . strtolower($this->unit_weight) . ' total)');
                } else {
                    $this->quotes = array('id' => $this->code, 'module' => $this->title  ); //. ' (' . $shipping_num_boxes . ($this->boxCount > 1 ? ' pkg(s) x ' : ' pkg x ') . number_format($shipping_weight,2) . ' ' . strtolower($this->unit_weight) . ' total)');
                }
    To remove the delivery date estimates, comment out these lines (261-266 on mine)
    Code:
                 //  if (isset($this->servicesTimeintransit[$type])) {
                  //      $eta_array = explode("-", $this->servicesTimeintransit[$type]["date"]);
                  //      $months = array (" ", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
                  //      $eta_arrival_date = $months[(int)$eta_array[1]]." ".$eta_array[2].", ".$eta_array[0];
                  //      $_type .= ", ETA: ".$eta_arrival_date;
                  //  }
    That's what worked for me!
    Last edited by Mr.Pibb; 20 Jan 2011 at 05:53 AM.

  4. #4
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Remove the number of packages, weight and delivery ETA times - UPS XML

    For anyone else stumbling upon this problem... you can change settings in Admin > Configuration > Shipping/Packaging > Display Number of Boxes and Weight Status = 0

  5. #5
    Join Date
    Jan 2008
    Location
    Memphis, USA
    Posts
    299
    Plugin Contributions
    0

    Default Re: Remove the number of packages, weight and delivery ETA times - UPS XML

    Quote Originally Posted by Mr.Pibb View Post
    Not sure if you solved this...

    To remove the packages and weight, including the first "UPS", just comment out those lines (241-245 on mine)

    Code:
     
                //if (DIMENSIONS_SUPPORTED) {
                //    $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $this->boxCount . ($this->boxCount > 1 ? ' pkg(s), ' : ' pkg, ') . $totalWeight . ' ' . strtolower($this->unit_weight) . ' total)');
                //} else {
                //    $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $shipping_num_boxes . ($this->boxCount > 1 ? ' pkg(s) x ' : ' pkg x ') . number_format($shipping_weight,2) . ' ' . strtolower($this->unit_weight) . ' total)');
                // }

    To leave that first "UPS" in there, this worked for me:

    Code:
              if (DIMENSIONS_SUPPORTED) {
                    $this->quotes = array('id' => $this->code, 'module' => $this->title  ); //.  ' (' . $this->boxCount . ($this->boxCount > 1 ? ' pkg(s), ' : ' pkg, ') . $totalWeight . ' ' . strtolower($this->unit_weight) . ' total)');
                } else {
                    $this->quotes = array('id' => $this->code, 'module' => $this->title  ); //. ' (' . $shipping_num_boxes . ($this->boxCount > 1 ? ' pkg(s) x ' : ' pkg x ') . number_format($shipping_weight,2) . ' ' . strtolower($this->unit_weight) . ' total)');
                }
    To remove the delivery date estimates, comment out these lines (261-266 on mine)
    Code:
                 //  if (isset($this->servicesTimeintransit[$type])) {
                  //      $eta_array = explode("-", $this->servicesTimeintransit[$type]["date"]);
                  //      $months = array (" ", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
                  //      $eta_arrival_date = $months[(int)$eta_array[1]]." ".$eta_array[2].", ".$eta_array[0];
                  //      $_type .= ", ETA: ".$eta_arrival_date;
                  //  }
    That's what worked for me!
    I resolved the ETA issue but not the number of boxes and weight. When I removed the above mentioned lines my site will not progress to the shipping page and just hangs on a white screen. Any ideas? For now I have it showing weights and boxes.

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

    Default Re: Remove the number of packages, weight and delivery ETA times - UPS XML

    Go to the Configuration ... Shipping/Packaging ... and set:
    Display Number of Boxes and Weight Status
    Display Shipping Weight and Number of Boxes?

    0= off
    1= Boxes Only
    2= Weight Only
    3= Both Boxes and Weight
    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: v1.5.5]
    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!

  7. #7
    Join Date
    Jan 2008
    Location
    Memphis, USA
    Posts
    299
    Plugin Contributions
    0

    Default Re: Remove the number of packages, weight and delivery ETA times - UPS XML

    Quote Originally Posted by Ajeh View Post
    Go to the Configuration ... Shipping/Packaging ... and set:
    I tried that but the configuration is already set to zero. I tried removing various bits of code but either the ups option doesn't show or it hangs when going to the shipping page.

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

    Default Re: Remove the number of packages, weight and delivery ETA times - UPS XML

    My bad ... I forgot that UPSXML does not use that switch ...

    Edit the file:
    /includes/modules/shipping/upsxml.php

    and add the code in RED:
    Code:
          if (DIMENSIONS_SUPPORTED) {
              $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $this->boxCount . ($this->boxCount > 1 ? ' pkg(s), ' : ' pkg, ') . $totalWeight . ' ' . strtolower($this->unit_weight) . ' total)');
          } else {
    //          $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $shipping_num_boxes . ($this->boxCount > 1 ? ' pkg(s) x ' : ' pkg x ') . number_format($shipping_weight,2) . ' ' . strtolower($this->unit_weight) . ' total)');
              $this->quotes = array('id' => $this->code, 'module' => $this->title);
          }
          $methods = array();
    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: v1.5.5]
    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!

  9. #9
    Join Date
    Jan 2008
    Location
    Memphis, USA
    Posts
    299
    Plugin Contributions
    0

    Default Re: Remove the number of packages, weight and delivery ETA times - UPS XML

    Quote Originally Posted by Ajeh View Post
    My bad ... I forgot that UPSXML does not use that switch ...

    Edit the file:
    /includes/modules/shipping/upsxml.php

    and add the code in RED:
    Code:
          if (DIMENSIONS_SUPPORTED) {
              $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $this->boxCount . ($this->boxCount > 1 ? ' pkg(s), ' : ' pkg, ') . $totalWeight . ' ' . strtolower($this->unit_weight) . ' total)');
          } else {
    //          $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $shipping_num_boxes . ($this->boxCount > 1 ? ' pkg(s) x ' : ' pkg x ') . number_format($shipping_weight,2) . ' ' . strtolower($this->unit_weight) . ' total)');
              $this->quotes = array('id' => $this->code, 'module' => $this->title);
          }
          $methods = array();
    Hi Linda,
    I tried adding the code and it did go to the shipping page but the ups option will not show up only fedex which I also have installed.
    Below is the current code I have:

    $upsQuote = $this->_upsGetQuote();
    if ((is_array($upsQuote)) && (sizeof($upsQuote) > 0)) {
    if (DIMENSIONS_SUPPORTED) {
    $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $this->boxCount . ($this->boxCount > 1 ? ' pkg(s), ' : ' pkg, ') . $totalWeight . ' ' . strtolower($this->unit_weight) . ' total)');
    } else {
    $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $shipping_num_boxes . ($this->boxCount > 1 ? ' pkg(s) x ' : ' pkg x ') . number_format($shipping_weight,2) . ' ' . strtolower($this->unit_weight) . ' total)');
    }

    Thanks in advance for any suggestions.

    Allan

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

    Default Re: Remove the number of packages, weight and delivery ETA times - UPS XML

    Check your code again and make sure you just add the 1 line in RED and comment out the original line ...

    If UPSXML still does not show, check for any debug logs in /logs or /cache (if using older Zen Cart version) ...
    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: v1.5.5]
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Remove Weight From UPS XML Zen Cart 5.0
    By timhersh in forum General Questions
    Replies: 1
    Last Post: 10 Nov 2013, 01:47 AM
  2. v139h UPS XML - Remove box weight from customers view???
    By mikestaps in forum Addon Shipping Modules
    Replies: 1
    Last Post: 10 Aug 2012, 08:59 PM
  3. UPS XML- Get rid of ETA date
    By BambooHeadquarters in forum Addon Shipping Modules
    Replies: 0
    Last Post: 10 May 2010, 08:02 PM
  4. UPS Number of Packages Combination
    By betterbanner in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 28 Jan 2009, 06:35 PM
  5. UPS Delivery Times
    By bolson in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 25 Jul 2007, 06:15 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR