Shipping rate computation method could not be loaded

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 12 años
Hello

Can someone please tell me why I'm getting this error (http://i51.tinypic.com/eqwbgl.jpg) when I try and view the cart ?

Here's =http://demo.ncthemes.com/try/theme00 the site if you want to try it yourself.

I keep getting errors, and all with a default clean install :(

Thanks
Hace 12 años
Error is self-descriptive. It means that shipping rate computation method could not be loaded. Go to admin area and ensure that you have at least one method active (demo here).
Hace 12 años
Thank You Andrei.

When I first saw the Error, I knew it was going to be one of them "Have at least one enabled" .. so I went and installed one of the Plugins for Shipping Rate.

However I didn't know that I had to also go to Shipping Rate Method Configuration and Enable it in there as well.

It now works, thank you. :)
Hace 8 años
Here is a little more detail:
The crash occurs because there is a check in the code to see if any Shipping Rate Computation Methods have been loaded. By default there are none installed and none activated.
Someone should change the code to show a more useful message and not crashing it instead of throwing an exception.

How to solve this:

1. In the solution go to project Nop.Services > Orders > OrderTotalCalculationService.cs and find method:

public virtual decimal? GetShoppingCartShippingTotal(IList<ShoppingCartItem> cart, bool includingTax, out decimal taxRate, out Discount appliedDiscount)

As of the time of this writing (NOP version 3.60) go to line 593 and comment out these two lines
//if (shippingRateComputationMethods == null || shippingRateComputationMethods.Count == 0)
//throw new NopException("Shipping rate computation method could not be loaded");


2. Next run the nop commerce project.
3. Go to Admin Panel > Configuration > Plugins > Local Plugins
4. On the Group Drop down, select Shipping rate computation, then click Search.
5. Select something like UPS, FedEx, and USPS and click Install.
6. Go to Admin Panel > Configuration > Shipping > Shipping Rate Computation Methods.
7. Click the Edit button then under column 'Is Active', check the box, then under the 'Edit Column' click Update.
8. Now go back to your code and uncomment the two lines from step 1 and rerun the project and you are good to go now.
Hace 7 años
Thanks ....

shipping rate computation method is Loaded..
Hace 7 años
I have the 3.9 and receiving the same error. Would this be the same solution for this version?
Hace 7 años
justinp1700 wrote:
I have the 3.9 and receiving the same error. Would this be the same solution for this version?

Yes, you need to have at least one Active Shipping Provider.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.