Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Free products not showing in cart
We are getting this error and having issues with our coupons lagging on changes made and not showing up in cart. Below is a error recieved while WPE was debugging
Division by zero in /nas/content/staging/ccdiy1956/wp-content/plugins/woocommerce-auto-added-coupons-pro-3.2.5/templates/coupon-select-free-product.php on line 51
This is probably because none of the free products of the coupon can be purchased. The products must be in stock, must be public (although it can be ‘hidden’) and have a price.
The division by zero notice is a result of this, but can be ignored. I will add a zero-check in the next release of the plugin.
You were correct it was the $0 price. Thank you!