Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Any way to remove the weight from United Parcel Service (XML) (1 pkg x 11 lbs total) (UPS Ground)


jweltydotcom

Recommended Posts

I don't know completely but i would think it's something to do with this code in... includes ->modules -> shipping -> usps.php

 

		  $this->quotes = array('id' => $this->code,
							'module' => $this->title . ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . 'lbs)');

 

If i get time later on i will see if i can figure out a way to filter it out without breaking everything lol :) Let me know if you find a way to do it yourself :)

Link to comment
Share on other sites

  • 2 weeks later...

Substitute ups for usps in Joanne's answer and you wont go far wrong.

 

If you wanted to remove " x " in the line that example generates you would delete

 

' x ' .

 

I am sure you can work the rest out yourself.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

I dont want the weights being posted to the site when a customer checksout and when i print invoices etc... is there anyway to remove the (1 pkg x 11 lbs total) from the following line:

 

United Parcel Service (XML) (1 pkg x 11 lbs total) (UPS Ground)

 

it works!! changed this:

 

				$this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $this->boxCount . ($this->boxCount > 1 ? ' pkg(s), ' : ' pkg, ') . round($totalWeight,0) . ' ' . 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 ') . round($shipping_weight,0) . ' ' . strtolower($this->unit_weight) . ' total)');

 

 

to THIS:

 

$this->quotes = array('id' => $this->code, 'module' => $this->title . '  ');
		} else {
			$this->quotes = array('id' => $this->code, 'module' => $this->title . '  ');

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...