Hi everyone,
I have installed and configured nopCommerce 1.40.
I have added a new 'Shipping Rate Computation Method' for the 'Shipping by order total' method.
It will add a shipping fee of 20.00EUR for any order that is shipped by ground and has a sub total more than 100.00EUR.
I now am wondering how this works.
I assume:
1. The ShippingManager will get the shipping total for the cart.
2. A new instance of 'IShippingRateComputationMethod' will be created, in this case a 'ShippingByTotalComputationMethod' instance.
3. The method GetFixedRate will be called to calculate the price (see note below).
However I have seen in the source code that most classes that derive from 'IShippingRateComputationMethod' simply return null. Can anyone explain how this bit of code works???
Kind Regards,
Mathijs
note: This is the file I found in the original source code:
..\nopCommerce_1.40\Shipping\Nop.Shipping.ShippingByTotal\ShippingByTotalComputationMethod.cs