Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Apr 2009
    Posts
    46
    Plugin Contributions
    0

    Default How to remove items weight from USP XML shipping quote?

    Can anybody help me with howto tweak USP XML module not to show order weight in a shipping quote? I want only ETA to show.

    here is example on how it looks in standard version:

    United Parcel Service (1 pkg x 9.00 kgs total) (UPS Standard, ETA: May 30, 2011)

    Thank you in advance for tips.
    Last edited by DazAna; 26 May 2011 at 08:58 PM.

  2. #2
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    504
    Plugin Contributions
    0

    Default Re: How to remove items weight from USP XML shipping quote?

    Look in includes/modules/shipping/ups.php for the lines that look like the below. Try commenting out this entire section as it is responsible for creating the weight display string.

    Code:
        if ( (is_array($upsQuote)) && (sizeof($upsQuote) > 0) ) {
          switch (SHIPPING_BOX_WEIGHT_DISPLAY) {
            case (0):
            $show_box_weight = '';
            break;
            case (1):
            $show_box_weight = ' (' . $shipping_num_boxes . ' ' . TEXT_SHIPPING_BOXES . ')';
            break;
            case (2):
            $show_box_weight = ' (' . number_format($ups_shipping_weight * $shipping_num_boxes,2) . TEXT_SHIPPING_WEIGHT . ')';
            break;
            default:
            $show_box_weight = ' (' . $shipping_num_boxes . ' x ' . number_format($ups_shipping_weight,2) . TEXT_SHIPPING_WEIGHT . ')';
            break;
          }
          $this->quotes = array('id' => $this->code,
                                'module' => $this->title . $show_box_weight);

  3. #3
    Join Date
    Apr 2009
    Posts
    46
    Plugin Contributions
    0

    Default Re: How to remove items weight from USP XML shipping quote?

    I think this code for ups.php and won't do anything for upsxml module.

    Can somebody clarify?

  4. #4
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    504
    Plugin Contributions
    0

    Default Re: How to remove items weight from USP XML shipping quote?

    look for the same line of code in the upsxml file. The code for creating the string should have not have changed. What changed was the method of getting the information and quotes from the UPS servers. I have my own version of the xml system running now as I have unique shipping issues. I still have some things to work out. I have a blogging style thread called "changing the database" if you wish to follow along.

  5. #5
    Join Date
    Apr 2009
    Posts
    46
    Plugin Contributions
    0

    Default Re: How to remove items weight from USP XML shipping quote?

    Quote Originally Posted by g2ktcf View Post
    look for the same line of code in the upsxml file. The code for creating the string should have not have changed. What changed was the method of getting the information and quotes from the UPS servers. I have my own version of the xml system running now as I have unique shipping issues. I still have some things to work out. I have a blogging style thread called "changing the database" if you wish to follow along.
    I tried that, but it doesn't have anything similar to that.

  6. #6
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    504
    Plugin Contributions
    0

    Default Re: How to remove items weight from USP XML shipping quote?

    yep, I just looked through that code and did not see anything that would create the string either.

  7. #7
    Join Date
    Apr 2009
    Posts
    46
    Plugin Contributions
    0

    Default Re: How to remove items weight from USP XML shipping quote?

    Thank you for trying!

  8. #8
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    504
    Plugin Contributions
    0

    Default Re: How to remove items weight from USP XML shipping quote?

    no problem :) just wish I could have found it. Maybe someone else more familiar with that specific module will chime in.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: How to remove items weight from USP XML shipping quote?

    Did you try adjusting the setting in Admin->Configuration->Shipping/Packaging?

    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
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Apr 2009
    Posts
    46
    Plugin Contributions
    0

    Default Re: How to remove items weight from USP XML shipping quote?

    Quote Originally Posted by DrByte View Post
    Did you try adjusting the setting in Admin->Configuration->Shipping/Packaging?
    Good idea, but I have already set it to "0" and both weight and # of boxes still show in UPS quotes.

 

 
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. remove weight from shipping process
    By iwantone in forum General Questions
    Replies: 1
    Last Post: 26 Nov 2009, 12:29 AM
  4. remove weight from checkout (zones shipping)
    By fulltilt in forum General Questions
    Replies: 3
    Last Post: 1 Jan 2009, 04:52 PM
  5. remove weight from shipping estimator
    By greatbaits1 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 20 Jun 2006, 03:04 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