Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › cheapest_product / every_nth_item query › Reply To: cheapest_product / every_nth_item query
July 11, 2017 at 7:56 am
#1634
Soft79
Keymaster
I see, cheapest Item fails in combination with a percent discount on WC3.0+
If you need a quick fix, please open wp-content/plugins/woocommerce-auto-added-coupons-pro/includes/pro/WJECF_Pro_Limit_Discount_Quantities.php and find this line (around 182):
if ( ! $wrap_coupon->is_type( array( 'fixed_product', 'percent_product' ) ) ) {
replace it with:
if ( $wrap_coupon->is_type( WJECF_WC->wc_get_cart_coupon_types() ) ) {
If you prefer not to change it yourself, I will place the new beta version online later today.