In plugin version 2.0.1 it displays the error message when debugging: “Undefined variable: menu_item, woocommerce-menu-cart.php on line 136.”
In the wcmenucart_menu_item() method this line can be added at the top to fix this issue:
$menu_item = false;
This gives the variable a value so it is defined.
Thank you for a great plugin.
- The topic ‘Undefined variable: menu_item’ is closed to new replies.