Support » Plugin: Menu Cart for WooCommerce » Removing "Items"

  • Is there a function I can add to my child theme function.php file that will take out the “item/items” after the cart quantity? Our client only wants the number of items in the cart to show, not the word “item(s).” Since the word is not within a dom, I can’t just hide it. I tried a language file, but the plug-in is not picking up on it.

    Any help would be appreciated.

    https://wordpress.org/plugins/woocommerce-menu-bar-cart/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    You can definitely do this via the language files, but you probably need to close/re-open de browser tab, because WooCommerce AJAX cache is very persistent!

    Thread Starter novusweb

    (@novusweb)

    Good advice. Your plug-in does not come with an English language translation file. I tried building one, but not sure it took.

    Can you provide one or is there somewhere I can grab the .po file to adjust and use?

    If not, what is the proper name I should use so it will be recognized?

    Plugin Contributor Ewout

    (@pomegranate)

    You can take any of the other languages that are included and rename the last part to en_GB or en_US (whatever you have set your WordPress install to). Then open in poedit, delete all the translation except for the items one (note that this has a single and a plural form, both of which have their own translation!).
    http://plugins.svn.wordpress.org/woocommerce-menu-bar-cart/tags/2.5.3/languages/
    Make sure you copy .mo file too, since that’s actually the compiled file that’s used by WordPress!

    I will discuss with the other developer if we should add a wrapper around the word items.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing "Items"’ is closed to new replies.