Prolly me not understanding but shipping did not seem to work right

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 years ago
I dont know if it is the same all over but here we get charged by weight.

0-3 kg package is one price
3-5 kg another

When I set this up I got a product with a weight of 3kg costing 3 times the amount I had specified for 0-3 kg. And when I look at the code it is multiplied by weight wich is totaly wrong for how it works here.
It dont mather if the weigh is ,5kg or 3kg it is the same price to send anything within 0-3kg.

Changing
shippingTotal = shippingByWeight.ShippingChargeAmount *Weight;

To
shippingTotal = shippingByWeight.ShippingChargeAmount;// *Weight;

In file ShippingByWeightComputationMethod.cs
seemed to fix this for me.

Please tell me if there is some other logic to this?

Kind regards
Jacob
14 years ago
Thanks so much for finding this - it saved me some time hunting this bug myself.  Your change caused the "By Weight" calculations to work perfectly.
14 years ago
Where is the file "ShippingByWeightComputationMethod.cs" located?

Thanks
14 years ago
\Shipping\Nop.Shipping.ShippingByWeight

You will need to have the source code to alter this file and visual studio to compile it.  The source can be downloaded from the "downloads" section.
14 years ago
Done...and it works...thanks.

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