Ready to get started?Download WordPress


WooCommerce Menu Cart
[resolved] Undefined variable: menu_item (2 posts)

  1. Todd Lahman
    Posted 1 year ago #

    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.


  2. Jeremiah
    Plugin Author

    Posted 1 year ago #

    Hey Todd!

    Thanks for your message. I thought we included that in the latest release, but looks like we missed it. We'll be sure to include it in our next release. :) Also, glad you like the plugin. Let us know if you have any other suggestions!


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.