Forums / General Questions / Remove Weight From UPS XML Zen Cart 5.0

Remove Weight From UPS XML Zen Cart 5.0

Views: 700

Results 1 to 2 of 2
9 Nov 2013, 6:43 PM
#1
timhersh avatar

timhersh

Zen Follower

Join Date:
Aug 2008
Posts:
274
Plugin Contributions:
0

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

10 Nov 2013, 12:47 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

            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[B] . ' (' . $shipping_num_boxes . ($this->boxCount > 1 ? ' pkg(s) x ' : ' pkg x ') . number_format($shipping_weight,2) . ' ' . strtolower($this->unit_weight)[/B] . ' 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!]
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!