Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › set parent product of the variation as free gift when variation is in the cart › Reply To: set parent product of the variation as free gift when variation is in the cart
April 18, 2017 at 8:01 am #1271
What about using this method you mentioned before to set free gift?
WJECF()->get_plugin(‘WJECF_Pro_Free_Products’)->set_session_selected_product( $coupon_code, $product_id )
Is there way to utilize this method to set free gift programmatically?