Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › single request to cart page generates 4 divide by zero on the same coupon › Reply To: single request to cart page generates 4 divide by zero on the same coupon
April 21, 2018 at 9:50 pm
#3107
Jonathan Moore
Participant
there’s a line difference because I put the logging code in, but it seems a clear divide by zero opportunity….
if ( $wrap_coupon->get_minimum_amount() ) {
$multiplier = self::min_value( floor( WC()->cart->subtotal / $wrap_coupon->get_minimum_amount() ), $multiplier );
}
the minimum amount for these coupons does appear to blank in the database