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
Looking at your log it just gets called once per request.
The value is non-zero as I suspected. This actually is a WC issue, because WooCommerce phpdoc states get_minimum_value() returns a float which it doesn’t. To solve the issue just remove the ‘0.00’ value from the coupon.
In the next release I might change the
if ( $wrap_coupon->get_minimum_amount() ) and cast to float.