wanless
Starting Member
1 Posts |
Posted - September 10 2004 : 08:09:53
|
I noticed a strange problem with out shipping calculations. We use the by weight range calculation and we have some products that have weights assigned to them and other products that have there weights assigned to there features. I noticed that if a customer orderd a product which had its weight assigned to the feature followed by a product that had is weight assigned to the product it miss calculated the shipping. Is this a known problem?
i have a fix below which seems to work fine so far :)
In the shopproductsubs.asp page change the following lines:
If Getconfig("xfeatureweight")="Yes" and prodfeatures<>"" then GetTotalfeatureweight conn, prodid, prodfeatures, featureweight end if featureweight=featureweight*prodquantity totalfeatureweight=totalfeatureweight+featureweight
To
If Getconfig("xfeatureweight")="Yes" and prodfeatures<>"" then GetTotalfeatureweight conn, prodid, prodfeatures, featureweight featureweight=featureweight*prodquantity totalfeatureweight=totalfeatureweight+featureweight end if
|
|