Title: error: invalid agrument
Last modified: August 21, 2016

---

# error: invalid agrument

 *  Resolved [ppagarawal](https://wordpress.org/support/users/ppagarawal/)
 * (@ppagarawal)
 * [13 years ago](https://wordpress.org/support/topic/error-invalid-agrument/)
 * hi!
    i am trying to use your plugin and am hit by an error which says invalid
   argument supplied for foreach on line 330. image: [http://s11.postimg.org/4jz12g6sj/prob5.jpg](http://s11.postimg.org/4jz12g6sj/prob5.jpg)
   kindly look into the matter so that the error is resolved.
 * also to not i am not getting the drop down list of menus:[http://s17.postimg.org/we8yktnbj/prob6.jpg](http://s17.postimg.org/we8yktnbj/prob6.jpg)
 * i am running this site on local host.
    kindly help me.
 * [http://wordpress.org/extend/plugins/woocommerce-menu-bar-cart/](http://wordpress.org/extend/plugins/woocommerce-menu-bar-cart/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [13 years ago](https://wordpress.org/support/topic/error-invalid-agrument/#post-3743359)
 * You probably have no custom menus configured (Appearence > Menus), which this
   plugin requires in order to work. The error message could be a little more informative
   though, so I will see if I can push a fix for this shortly. Meanwhile, could 
   you confirm that creating a custom menu fixes the issue for you?
 *  Thread Starter [ppagarawal](https://wordpress.org/support/users/ppagarawal/)
 * (@ppagarawal)
 * [13 years ago](https://wordpress.org/support/topic/error-invalid-agrument/#post-3743366)
 * yes this issue is fixed.
 * however i’d like to seek some help from you. i am new to woocommerce and have
   added products to it. now in order to assure the changes are made to the website
   can you please tell me what to do next. also, let me know how to activate the
   add to cart button.
 * regards,
    prateek.
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [13 years ago](https://wordpress.org/support/topic/error-invalid-agrument/#post-3743368)
 * Hi Prateek,
    The add to cart button should work out of the box. If you want your
   products to appear on the website, make sure you have added the shop page to 
   your custom menu (if you are using permalinks, it should be something like yoursite.
   com/shop). When the cart is empty, WooCommerce Menu Cart will also link to this
   page. WIthout a link to your website, it’s hard to give you any precise directions.
 * I suggest searching for a WooCommerce tutorial online (here’s one: [Getting started with WooCommerce](http://wp.tutsplus.com/tutorials/plugins/getting-started-with-woocommerce-initial-setup/)).
   Also, make sure your theme supports WooCommerce. Let us know if you have any 
   issues with the WooCommerce Menu Cart though!
 * Kind regards,
    Ewout
 *  Thread Starter [ppagarawal](https://wordpress.org/support/users/ppagarawal/)
 * (@ppagarawal)
 * [13 years ago](https://wordpress.org/support/topic/error-invalid-agrument/#post-3743369)
 * will surely start with some online tutorial.
    Thanks Ewout
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [13 years ago](https://wordpress.org/support/topic/error-invalid-agrument/#post-3743376)
 * Good! I’ll mark this issue as resolved then. Let us know if you have any issues
   with or questions about the WooCommerce Menu Cart.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘error: invalid agrument’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-menu-bar-cart/assets/icon-256x256.png?rev=2190481)
 * [Menu Cart for WooCommerce](https://wordpress.org/plugins/woocommerce-menu-bar-cart/)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-menu-bar-cart/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-menu-bar-cart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-menu-bar-cart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-menu-bar-cart/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ewout](https://wordpress.org/support/users/pomegranate/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/error-invalid-agrument/#post-3743376)
 * Status: resolved