eCart calculation error
Don't worry, I have fixed it. It was the line of code that I had put in my previous post and the error was:
if (true AND ((UBound(toddseCart.Items) >= 0))) then
totalCharge = totalCharge + ((WA_eCart_TotalColumn(toddseCart, "TotalPrice") - (toddseCart_GetDiscounts()) * 0) + cDbl(6))'Result
end if
somehow, totalCharge added itself to TotalPrice (hence doubling the order value). I removed this section AND the toddseCart_GetDiscounts section and the cart now works.
For those who are wondering, the corrected code looks like this:
if (true AND ((UBound(toddseCart.Items) >= 0))) then
totalCharge = totalCharge + (cDbl(6))'Result
end if
It would be nice to know how the error happened so I can prevent it from happening again if anyone has any ideas?