AnsweredAssumed Answered

Getting n min number of a portal

Question asked by fm-user01 on Jul 25, 2017
Latest reply on Jul 25, 2017 by fm-user01

Hello everyone,

 

I am working for this customer, pizza place. They do have a promotion going on, if you buy 6 can of drinks, the second pizza(cheapest) would be half price. Like if you are ordering 3 mushroom pizza(19$) and 2 Pepperoni (22$) and 6 cans of drink, then you will get 50% off 19$. My file is working fine for this discount.

 

However if you get 12 cans, then 2 pizza are discounted, and here is where my file fails to do. I need some help to fine a solution for this.

 

 

Pizza Table includes "Name", "price per unit", "Quantity", "Total price"

Shopping cart: includes a portal of pizzas

 

Thanks

Outcomes