I need some help with a special situation, I need to decrease the coupon usage by every free item given.
Example, I give a free pillow by every mattress, then the coupon is configured using BOGO and gives the same amount of pillows as mattress, that is ok, but if is used to buy 5 mattress on the same purchase gives 5 pillows (thats ok) but the coupon decrease is only 1.
How can I change on php maybe to reduce the coupon usage as many free products are given?
I think adding two properties (‘max free items to give away’ and ‘number of items given away’) to the coupon would be the easiest solution. Decrease the 2nd property with the amount of applied free products every time the coupon is used.