fatal error
-
Hi, I‘m getting a fatal error at the cart page with the version 2.4.24 of WooCommerce Min/Max Quantities enabled.:
Fatal error: Uncaught TypeError: Unsupported operand types: string * int in /mnt/web006/e1/17/5715117/htdocs/STRATO-apps/wordpress_02/app/wp-content/plugins/woocommerce-min-max-quantities/woocommerce-min-max-quantities.php:335
woocommerce-min-max-quantities/woocommerce-min-max-quantities.php:335: if ( 'yes' !== $minmax_do_not_count && 'yes' !== $minmax_cart_exclude ) { $total_cost += $product->get_price() * $values['quantity']; }
I‘m not a developer, but with this script, I fixed the cart to work again (lines at 335):
woocommerce-min-max-quantities.php:335: if ( 'yes' !== $minmax_do_not_count && 'yes' !== $minmax_cart_exclude ) { $total_cost += floatval($product->get_price()) * intval($values['quantity']); }
I think I recently updated the plugin.
Can you reproduce the error?regards
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘fatal error’ is closed to new replies.