Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Multiple free item from a variable product
I need to be able to allow multiple free items from a variable product. I tried to play with the options but I can only add multiple items from one variant.
1. Buy 2x of Product A and get 1x Product C (variant 1) and 1x Product C (Variant 2)
2. Buy 1x of Prodct A and 1x of Product B and get 1x Product C (variant 1) and 1x Product C (Variant 2)
Hi, you can only achieve this programmatically. You can use the filter wjecf_set_free_product_amount_in_cart:
See also: https://www.soft79.nl/forums/topic/set-parent-product-of-the-variation-as-free-gift-when-variation-is-in-the-cart/#post-1274