percent discount basd on quantity with hard coded add to button
$ATC_itemdiscountPercentage = "".$eCart1->DisplayInfo("discountPercentage") ."";// column binding
this is circular logic, it cant get the value from the cart, the add to cart is trying to add the value to the cart.
this should be set to the desired percentage instead, for example, 20%:
$ATC_itemdiscountPercentage = "0.2";// column binding
Hi Jason .. thanks ... so just to clarify:
- I would need to create a column for each percentage range and then add a trigger
quantity more than 5 less than 11 > $ATC_itemdiscountPercentage1 = "0.1";// column binding
quantity more than 11 less than 16 > $ATC_itemdiscountPercentage2 = "0.2";// column binding
quantity more than 16 > $ATC_itemdiscountPercentage3 = "0.3";// column binding
I had changed the calculation in the original post to .... * [discountPercentage]:0.1... thinking that was where to input the percentage - I need to change that back to 0 correct?
Thanks again for your help