Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

UPS Shipping - How do I limit the shipping rates?


hetzels

Recommended Posts

Hi,

 

I see that I forgot to add this to wiki:

 

Change UPS Listings

 

This removes some of the listings under the ups option in admin.

 

catalog/includes/modules/shipping/ups.php by commenting out this code of which listings you don't want ... NOTE: This only removes the text listing

 

$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');

 

About line 98 change:

 

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);

 

To:

 

//change to wrap code in the quote () method to only add method if supported

for ($i=0; $i<sizeof($upsQuote); $i++) {

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

if( isset($this->types[$type]) )

{

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

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

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

}

//end of change to wrap code in the quote () method to only add method if supported

 

NOTE: This removes the radio button that was next to the text listing for that particular method.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...