Support » Plugin: WooCommerce Menu Cart » Price Always Displays

  • Resolved QC Creative


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ewout


    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.

    Wow! Thank you so much for the quick response.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Price Always Displays’ is closed to new replies.