Repository Forums Support WooCommerce Extended Coupon Features PRO Free Product coupon still charging for free product Reply To: Free Product coupon still charging for free product

#911
Soft79
Keymaster

Could you try replacing the following lines in includes/wjecf-pro-free-products.php (line 31,32) of my plugin?

add_filter( 'woocommerce_add_cart_item', array( $this, 'filter_woocommerce_add_cart_item'), 90, 6); // overwrite values (price 0.00) if it's a free products
add_filter( 'woocommerce_get_cart_item_from_session', array( $this, 'filter_woocommerce_get_cart_item_from_session' ), 90, 3); // overwrite values (price 0.00) if it's a free product

with

add_filter( 'woocommerce_add_cart_item', array( $this, 'filter_woocommerce_add_cart_item'), 99999, 6); // overwrite values (price 0.00) if it's a free products
add_filter( 'woocommerce_get_cart_item_from_session', array( $this, 'filter_woocommerce_get_cart_item_from_session' ), 99999, 3); // overwrite values (price 0.00) if it's a free product

does that help?