Change the Shipping Rates Display order

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