Tangopdx wrote:My client has asked that the number of shipping options (ground, air, express, etc) be shortened. I've managed to do so with the information in these forums for USPS (recompiled after commenting out a few) but have not found how to do the same with UPS.
Can someone tell me what would need to be changed (and where) ti limit the number of UPS options displayed to the customer at checkout?
Thanks
Edit file:
Shipping\Nop.Shipping.UPS\UPSComputationMethod.cs and the
GetServiceName() method at line #277. Comment out the case statements and their return statements in the switch to omit UPS services. In the code below, as an example, the "UPS Next Day Air Early A.M." service has been removed.
private string GetServiceName(string serviceID)
{
switch (serviceID)
{
case "01":
return "UPS NextDay Air";
case "02":
return "UPS 2nd Day Air";
case "03":
return "UPS Ground";
case "07":
return "UPS Worldwide Express";
case "08":
return "UPS Worldwide Expidited";
case "11":
return "UPS Standard";
case "12":
return "UPS 3 Day Select";
case "13":
return "UPS Next Day Air Saver";
//case "14":
// return "UPS Next Day Air Early A.M.";
case "54":
return "UPS Worldwide Express Plus";
case "59":
return "UPS 2nd Day Air A.M.";
default:
return "Unknown";
}
}
There are also some typos (underlined) in the code at line #282, the line should be
return "UPS Next Day Air";
and at line #290, the line should be
return "UPS Worldwide Expedited";
This refers to code from version 1.70, but the code should be the same, but possibly on different line numbers, for earlier versions. You will need to recompile the
Nop.Shipping.UPS project.
.