• Resolved Todd Lahman

    (@toddlahman)


    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.

    http://ww.wp.xz.cn/extend/plugins/woocommerce-menu-bar-cart/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Jeremiah

    (@jprummer)

    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!

    Jeremiah

Viewing 1 replies (of 1 total)

The topic ‘Undefined variable: menu_item’ is closed to new replies.