• Resolved zikuke

    (@zikuke)


    Hello

    I can′t find a way to translate my topbar items text: Your cart (woocommerce mini cart) and the cart′s hover text (View your shopping cart)

    I have 2 languages, English by default and Estonian the translation.

    There are 2 items on my website`s top bar: a cart icon with a text Your cart next to it and My account.

    I could translate My account page with no problems and add it to top bar menu.

    But View cart and the hover text does not translate, a already tried Loco Translations, it did not work.

    I used Polylang and Hyyan Woocommerce plugins for my translations and created a topbar menu for estonian language to show the pages.

    Please advise, how to translate the View cart and the hover into Estonian.

    Thanks a million in advance,
    Sigrid

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,

    You should be able to change this text within the theme files. Be sure that you are emptying your cart after changing the text. WooCommerce will cache the old cart text if you have made this change while there are items in the cart.

    If you’re still having issues, post a link so I can take a look.

    -Kevin

    Thread Starter zikuke

    (@zikuke)

    Thank you, Kevin, for the prompt answer.

    The Estonian language website is:
    https://wilbertfiber.com/et/

    On the right corner of the top bar are: Minu konto (as My account) and View Cart (with the English hover text).

    Could you please tell me, where I should look for those theme files?

    Thank you again,
    Sigrid

    Go to Loco Translate> Virtue, and select the language that you’re wanting to change.

    In the “Filter Translations” input box, type in “Your Cart.”

    This should bring up the topbar cart text. Select, and set your new translation for each.

    Save each translation, and you should see the updated text

    Let me know if that helps.

    -Kevin

    Thread Starter zikuke

    (@zikuke)

    Oh, that actually worked!

    I already did use a Loco translate for translating this, but the text did not change.
    I guess I made a mistake earlier by translating the child theme files instead of parent theme ones.

    But now the translation is in place and appears to work.

    Thank you so much for your quick and efficient help.

    Regards,
    Sigrid

    Great! I’m glad that worked for you. Let me know if you need any further assistance with this. ??

    -Kevin

    Thread Starter zikuke

    (@zikuke)

    Hello Kevin,

    As it happens, I do need more assistance.

    The translated Your Cart – Ostukorv shows only in computer/laptop screen, but on mobile device it only flashes the “Ostukorv” for a second, but once the page is loaded, shows the English version (Your cart) again.

    Also, on mobile, the MENU button text does not translate into MENüü as it should be in estonian language, but remains MENU.

    Do you know the solution for the problems?

    Thanks a million again,
    Sigrid

    • This reply was modified 7 years, 1 month ago by zikuke.

    This sounds like a caching issue. I would first try going into the cart and making sure that you’ve removed all products.

    If that doesn’t work, then go to WooCommerce> Status> Tools, and find “Clear customer sessions.”

    Finally, clear your site’s cache. Let me know if that works for you.

    -Kevin

    Hello Kevin and Sigrid,

    I happen to have the same issue: the website’s main language is English, when I switch to either Italian or German, the mini cart icon briefly translates into Italian or German, and after a moment switches back to English.
    I tried clearing the customer sessions and I used a plugin for removing all cache, however I still come across the same issue. I also noticed that Sigrid’s website has exactly the same issue: the cart displays “Your Cart” for the Estonian version of the website as well.
    I’m using both Polylang and Hyyan WooCommerce Polylang Integration with Virtue theme.

    Please let me know if you have any advice for me.

    Best,
    Raz

    Hello Raz,

    Can you please start a new topic with this question and include a link to your site?

    Thanks,
    Kevin

    Hello Kevin,

    Thanks for your reply. I started a new topic here.

    Best,
    Raz

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Virtue/Woocommerce: how to translate Your Cart and the hover text’ is closed to new replies.