ResolvedHow to translate text in cart notification popup

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #34475
    Misselie
    Participant

    Hi,

    How to translate the text contained in the popup that appears when adding a product to the cart?
    (class=”zass_added_to_cart_notification”)

    Thanks in advance for your help,
    Elodie

    #34476
    Althemist
    Keymaster

    Hi Elodie,

    The easiest way would be with a plugin like Loco Translate. You can use it to translate any theme or plugin string.

    Loco Translate

    #34477
    Misselie
    Participant

    I tried with this plugin, and another one, but I can’t get the string.
    I was considering doing the modification directly in the source code otherwise, but I can’t find the file to modify.

    #34513
    Alex
    Keymaster

    Hi Elodie,

    The message string is ‘was added to the cart’ and the product name is prepended in front. So you need to search for ‘was added to the cart’ string and translate it. We just tested it and it works.

    Regards,
    Alex

    #34516
    Misselie
    Participant

    Hi Alex,

    Indeed I found the string in question, I do not know why I had not seen it the first time …
    Thanks for your help 😉

    Regards,
    Elodie

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register