WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. QC Creative
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/woocommerce-menu-bar-cart/

  2. Ewout
    Member
    Plugin Author

    Posted 1 year 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!

    find

    $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
    Member
    Posted 1 year ago #

    Wow! Thank you so much for the quick response.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.