Change the Shipping Rates Display order

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years 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.
3 years 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();
3 years ago
Or, if you are not a developer, Shipping Director has a Sort Expression
3 years 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!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.