Change the Shipping Rates Display order

2 months ago
Is it possible to change the display order of the Shipping Rates?  i.e. lowest to highest.  Or can I see it by UPS, then USPS, then FedEx?

Thanks in advance.
2 months ago
Sure. You can add the sorting logic in the "GetShippingOptions" method of /Nop.Services/Shipping/ShippingService.cs (here) by adding the following line of code:
result.ShippingOptions = result.ShippingOptions.OrderBy(so => so.Rate).ToList();
2 months ago
Or, if you are not a developer, Shipping Director has a Sort Expression
2 months ago
a.m. wrote:
Sure. You can add the sorting logic in the "GetShippingOptions" method of /Nop.Services/Shipping/ShippingService.cs (here) by adding the following line of code:
result.ShippingOptions = result.ShippingOptions.OrderBy(so => so.Rate).ToList();


Thanks Andrei!  It worked great!