Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Woocommerce subscriptions don't auto apply coupon › Reply To: Woocommerce subscriptions don't auto apply coupon
It looks like the subscription plugin does something to the cart cookie in a way that is not compatible with my plugin. Probably has something to do with the order in which actions/filters are handled.
Would you mind hacking my plugin a bit? Find this line in wjecf-autocoupon.php (line 28):
add_action( 'woocommerce_after_calculate_totals', array( &$this, 'update_matched_autocoupons' ) );
replace with:
add_action( 'woocommerce_after_calculate_totals', array( &$this, 'update_matched_autocoupons' ), 1 );
or with:
add_action( 'woocommerce_after_calculate_totals', array( &$this, 'update_matched_autocoupons' ), 999 );
Let me know if it helps?
If not, I will need to take a look and need ftp and admin access. You can send it to me through the contact page.
PS: The snippet you uncommented should be placed in functions.php of your child theme to make it update safe.