Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Obtain coupon info › Reply To: Obtain coupon info
October 31, 2016 at 12:44 pm
#736
Soft79
Keymaster
Minimum amount of matching items: get_post_meta( $coupon_id, '_wjecf_min_matching_product_qty', true )
(Where $coupon_id is the id of the coupon)
Ids of the products that must be matched: $coupon->product_ids
(Where $coupon is the WC_Coupon object)
Free product ids: WJECF_API()->get_coupon_free_product_ids( $coupon )
(Where $coupon is the WC_Coupon object, coupon id or coupon code)