Discounts
Hi Jason,
I have set the following that you supplied to TruePrice, ss that correct
[Price] - ((Abs([Quantity]>=3 && [VolumeDiscount] == 7)*[Price]*0.1)
and then I changed TotalPrice to:
([Price] - ((Abs([Quantity]>=3 && [VolumeDiscount] == 7)*[Price]*0.1)) * [Quantity]
As a result I now get this:
Microsoft VBScript compilation error '800a03ea'
Syntax error
/dmbc/WA_eCart/dmbp_VB.asp, line 320
itmObj.TotalPrice = (itmObj.Price - ((Abs(itmObj.Quantity>=3 && itmObj.VolumeDiscount == 7)*itmObj.Price*0.1)) * itmObj.Quantity'c
--------------------------------------------------------------^
My end goal here is to have 3 different order quantities that will result in the following discounts for VolumeDiscount = 7, is it possible to evaluate 2 or more VolumeDiscounts in this calculation or not
3 +- 10%
10+ - 15%
20+ - 20%