Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)

Ok so I feel stoopid, but I cannot figure out where the heck $quotes[$i]['module'] gets set?

 

This is the variable that is used to describe the shipping module (eg, ups, usps, etc) for which quotes are obtained to let customers select their preferred shipping method.

 

For example, the variable is displayed in the checkout_shipping.php page and is something like: United States Postal Service (1 x 0.3lbs) (0lbs, 4.8oz)

 

I want to strip off the information that is appended in parenthesis and just show the carrier (no weights or package details).

 

Any help much appreciated.

Edited by audre
Posted

As with most things, once you ask the question you end up stumbling upon your answer LOL...

 

In case it will help someone else... this variable is set in each shipping module you've got enabled so for example, if you are using UPS XML you'll find something like:

 

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

 

Where the title portion is what gets displayed as one of the shipping options. So just edit that to display what you want.

 

You'll have to do this in every shipping module you've got enabled.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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