Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

UPS SML - Show Total Weight


ronr1999

Recommended Posts

Customer orders two items at 40lbs each. UPS XML shows:

 

"UPS (United Parcel Service) (2 pkg(s) x 40 lbs total)"

 

I would like it to show:

 

"UPS (United Parcel Service) (2 pkg(s) = 80 lbs total)"

 

----

 

Seems much clearer to me...

 

Can anyone help make this change ?

 

Thanks!

 

RonR

Link to comment
Share on other sites

This seems to work:

 

Find this in catalog/includes/modules/shipping/upsxml.php around line 233:

 

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

 

And change to:

 

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

 

 

(sometimes this stuff is way easy !!)

 

RonR

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...