Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Posts
    274
    Plugin Contributions
    0

    Default Remove Weight From UPS XML Zen Cart 5.0

    Hello,

    I have turned off the 'show weight and number of packages' from everywhere in zen cart. The only location it is still showing up is on the final totals page.

    I'm seeing this

    United Parcel Service (1 pkg x 24.00 lbs total) (UPS Ground, ETA: November 12, 2013

    I know I need to edit the ups module file but not sure what code to remove. Any help would be great, here is the contents of upsxml.php. I'm just needing the weight and number of packages to NOT show, would like to leave the ETA though

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

    Default Re: Remove Weight From UPS XML Zen Cart 5.0

    Most likely, around line 274 in the file:
    /includes/modules/shipping/upsxml.php

    you will need to change 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)');
                }
    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!

 

 

Similar Threads

  1. Replies: 11
    Last Post: 28 Aug 2014, 04:12 PM
  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. How to remove items weight from USP XML shipping quote?
    By DazAna in forum Addon Shipping Modules
    Replies: 11
    Last Post: 30 May 2011, 06:34 AM
  4. UPS XML - Weight not transferring to WorldShip
    By ikernbecauseicare in forum Addon Shipping Modules
    Replies: 6
    Last Post: 23 Feb 2011, 08:03 PM
  5. UPS-XML module not getting right number of boxes from Zen Cart
    By rstevenson in forum Addon Shipping Modules
    Replies: 0
    Last Post: 11 Nov 2008, 04:11 AM

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