Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sorting Shipping Methods within Shipping Modules


aiyou

Recommended Posts

Hello.

 

After finally resolving the latest USPS change, I got to wondering how to resort the array of shipping options per method. Currently, with USPS and UPS installed, my results are sorted as:

 

United States Postal Service

Express Mail: Estimated 1 - 2 Days $15.15

First Class Mail: Estimated 1 - 5 Days $3.06

Priority Mail: Estimated 1 - 3 Days $6.40

 

 

United Parcel Service

Next Day Air Early AM $60.35

Next Day Air $27.18

Next Day Air Saver $23.97

2nd Day Air $18.14

3 Day Select $12.41

Ground $11.21

 

I know I can control the display sort order of the individual shipping modules from within Admin. However, how do I resort the methods within both USPS and UPS so that each array of methods is sorted by shipping cost, lowest to highest?

 

The USPS domestic methods seem to sort alphabetically, while USPS international (not shown above) will sort by cost, highest to lowest. UPS also sorts highest to lowest.

 

I've looked at each module, and can't locate a specific "sort array" function.

 

Thanks in advance

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