I’m trying to make an auto coupon that discounts 1 child meal for each adult meal
Not every adult will come with a child so the Free products feature doesn’t work.
I have tried the snippet posted here
https://www.soft79.nl/forums/topic/add-a-product-on-the-cart-to-get-discount-on-other-category/#post-4000
but that discounts all child meals with only 1 adult meal. it should be 1 adult meal = 1 free child’s meal.
so 2 adults and 3 children should be 2 free meals, not 3.
any help would be appreciated.