Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping Options


oglee

Recommended Posts

In /catalog/includes/modules/shipping/ups.php find:

 

      $this->types = array('1DM' => 'Next Day Air Early AM',

                          '1DML' => 'Next Day Air Early AM Letter',

                          '1DA' => 'Next Day Air',

                          '1DAL' => 'Next Day Air Letter',

                          '1DAPI' => 'Next Day Air Intra (Puerto Rico)',

                          '1DP' => 'Next Day Air Saver',

                          '1DPL' => 'Next Day Air Saver Letter',

                          '2DM' => '2nd Day Air AM',

                          '2DML' => '2nd Day Air AM Letter',

                          '2DA' => '2nd Day Air',

                          '2DAL' => '2nd Day Air Letter',

                          '3DS' => '3 Day Select',

                          'GND' => 'Ground',

                          'GNDCOM' => 'Ground Commercial',

                          'GNDRES' => 'Ground Residential',

                          'STD' => 'Canada Standard',

                          'XPR' => 'Worldwide Express',

                          'XPRL' => 'worldwide Express Letter',

                          'XDM' => 'Worldwide Express Plus',

                          'XDML' => 'Worldwide Express Plus Letter',

                          'XPD' => 'Worldwide Expedited');

 

and delete the lines you do not need. Be carefull to end the final line with );

 

For just ground and overnight it would look like:

 

$this->types = array('GND' => 'Ground',

                                    '1DA' => 'Next Day Air');

 

Hope this helps :)

Tom

Link to comment
Share on other sites

oglee,

 

Unfortunately, I thought that just deleting the "types" array entry would do the trick.

 

I haven't tested the following and no guarantees it will work, but it's worth a try.

Save a copy of your existing ups.php file ;) .

 

Find the following code (about line 98)

 

for ($i=0; $i<$qsize; $i++) {

          list($type, $cost) = each($upsQuote[$i]);

          $methods[] = array('id' => $type,

                            'title' => $this->types[$type],

                            'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);

        }

Add the test to see if title is not empty before adding to methods array

for ($i=0; $i<$qsize; $i++) {

          list($type, $cost) = each($upsQuote[$i]);

          if ($this->types[$type] != "") {

              $methods[] = array('id' => $type,

              'title' => $this->types[$type],

              'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);

          };

        }

 

Good luck with the change.

Link to comment
Share on other sites

I'd love to try it... but now i got bigger problems! In trying to eliminate some of the shipping options within the UPS.php file, i think i broke it.... tried to rebuild file with a copy from original source. Now - Here is the error message during checkout:

 

"This is currently the only shipping method available to use on this order.

United Parcel Service. An error occured with the UPS shipping calculations.

Invalid ShipperPostalCode. If you prefer to use UPS as your shipping method, please contact the store owner. "

 

any help for a dummy? :(

Link to comment
Share on other sites

I'm having the same problem. I put in my shipping zip code but UPS still doesn't work.

United Parcel Service

An error occured with the UPS shipping calculations.

Invalid ShipperPostalCode

If you prefer to use UPS as your shipping method, please contact the store owner.

 

I dont know what to do. PLEASE HELP!!!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...