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

  1. Todd Lahman
    Posted 2 years 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 2 years 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

  • WooCommerce Menu Cart
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.