Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Choice of Free Gifts
Hi there, i wish to achieve this function:
– When customer buys product A, they can only choose free gift for Product X Only
– When customer buys product B, they can only choose free gift for Product Y Only
Currently, when they buy product A, they can choose Product X & Y, how do i limit the free gift ?
please help, thank you Marcus
Using PHP you can use the filter woocommerce_coupon_get__wjecf_free_product_ids to change the free product ids according to the cart contents.
woocommerce_coupon_get__wjecf_free_product_ids
hi thanks for the reply,
i have no idea how to do that though, do you have step by step instructions? or a video ?
thank you