WooCommerce Menu Cart
[resolved] Price Always Displays (3 posts)

  1. QC Creative
    Posted 2 years ago #

    Hi, I'm trying to have the menu bar show only the # of items in the cart, without the word "items" or the price. Is this possible using this plugin? I have the settings "show item only" checked, but the price is still showing (a bug perhaps?). I can remove it with some custom CSS, but that would still leave me with "# items -" rather than just "#" which is what I'd like to display.

    The site I'm testing on is a clean installation of WP 3.5.2 with the latest WooCommerce and the _s theme.


  2. Ewout
    Plugin Author

    Posted 2 years ago #

    Hi QC,
    If you still see the price, there's a chance you need to refresh your browser (that is, open in a different session/tab/whatever). Some changes lag behind because of AJAX (paradoxically!).

    Then, if you'd like to remove the items word, you'll have to do that manually in the plugin php file - this is not update proof though!


    $cart_contents = sprintf(_n('%d item', '%d items', $cart_contents_count, 'wcmenucart'), $cart_contents_count);

    and replace with

    $cart_contents = $cart_contents_count;

    and you should be fine.

  3. QC Creative
    Posted 2 years ago #

    Wow! Thank you so much for the quick response.

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.