How to set a fixed amount on shipping using 1.50

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
I need to set a fixed amount on every order. I cant seem to get it to work in nopCommerce 1.50.

I've tried all the built in shippingmethods but all of them calculates from weight or order total or such.

I've also tried this module for 1.40 https://www.nopcommerce.com/extensions/3/shipping-modules.aspx
But I can't get it to work with v.150

Anyone got an idea on how to do this?
13 years ago
in Shipping\Nop.Shipping.ShippingByWeight\ShippingByWeightComputationMethod.cs
change line 60 from

shippingTotal = shippingByWeight.ShippingChargeAmount * Weight;

to

shippingTotal = shippingByWeight.ShippingChargeAmount + Weight * 0;
13 years ago
fantastiskt wrote:
I need to set a fixed amount on every order. I cant seem to get it to work in nopCommerce 1.50.

I've tried all the built in shippingmethods but all of them calculates from weight or order total or such.

I've also tried this module for 1.40 https://www.nopcommerce.com/extensions/3/shipping-modules.aspx
But I can't get it to work with v.150

Anyone got an idea on how to do this?


In 1.50, there is a built in shipping rate computation method named "Fixed Rate Shipping" that will allow you to offer a fixed shipping charge:
Administration > Configuration > Shipping > Shipping Rate Computation >  "Fixed Rate Shipping" (edit)
Check "Active" checkbox > Set value for "Fixed shipping rate" on "Configuration" tab > Save.

You will need to have a shipping method set to use the fixed rate shipping. Administration > Configuration > Shipping > Shipping Methods > "Add New" button if there are none.

Have you tried this method or is it missing? If it is missing, your install may not have completed. If you have tried it, is an error being shown?

.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.