• Resolved Jan444

    (@ign2009)


    Hi, we’d like to change the minicart number “0” (when there are no products) for some text.

    How can we do this / in which template file to look?

    Thanks,

    • This topic was modified 4 years, 4 months ago by Jan444.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @ign2009,

    It sounds like you may be wanting to change the text for a mini cart in the header of your site. If that’s the case, this is added by the theme or another plugin. The WooCommerce core doesn’t add a header cart to sites by default, but many themes do this.

    You could likely find it by editing the themes header.php file. You may have to look for some functions called there, but you should be able to ultimately find it.

    If you have any questions, please let us know.

    Cheers

    Hello @ign2009,

    We have not heard from you in a while so I’m marking this thread as resolved. If you do have more trouble with this, please open up a new topic and we’ll be happy to help you out.

    Thread Starter Jan444

    (@ign2009)

    Hi, after looking through the files, we have discovered the code is pulling this:

    woocommerce_mini_cart();

    …then we go to functions and we also find this:

    echo WC()->cart->get_cart_contents_count();

    …but those are WooCommerce template tags right? So it’s not a theme-specific tag… or is it?

    We would like to change the “0” when no product have been added for something else (a text, like “empty!”).

    Where should we edit the files?

    Thanks,

    • This reply was modified 4 years, 4 months ago by Jan444.
    • This reply was modified 4 years, 4 months ago by Jan444.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change minicart “0 items” to some other text’ is closed to new replies.