Support » Plugin: WooCommerce » Replace all instances of “cart” with “wishlist”

  • Resolved mikopia


    I want to replace every instance of the word “cart” in Woocommerce to “wishlist” including on the cart page itself, even after updating the cart.

    Is there any file I can modify that contains a variable with the word cart that affects all Woocommerce pages?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Best not to alter theme or plugin files. Any edits will be over written by updates.

    To change almost any text, you can “translate” it. “Translate” in this context also means using different words in the same language.

    So try Loco Translate:
    Activate, then:
    Dashboard > Loco Translate > Plugins > WooCommerce > select your language > Edit

    If you have theme override templates, look at
    Dashboard > Loco Translate > Themes > your-theme-name > etc

    In either case, click the Sync button, then filter for the string you want to change.

    Save in the custom location to make your translations update-safe:

    Any problems, study the Loco Translate documentation.

    Thread Starter mikopia


    I do not follow the last part about saving to a custom location. When I choose to save, it simply says that the changes have been made but does not ask me where I want to save it.

    If you go to:
    Dashboard > Loco Translate > Plugins > WooCommerce
    you get a table showing the available translations. There might be only one. In the right-most column called “Folders” it will say either System, Custom or Author.

    If you edit the System folder translations, your edits will be overwritten by the next translation update. If you go this way, you’ll need to keep a list of your edits and redo them after translation updates. Or you can disable auto-updates.

    To avoid this, you can copy the relevant .po and .mo files from
    where they should be safe from updates. In effect you have made a new custom language.

    When you go to the available translations table as explained above, one of the rows will have “Custom” in the folder location and that’s the one to edit. Any translations in “Custom” will take precedence over the “System” ones in

    Themes similar.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Replace all instances of “cart” with “wishlist”’ is closed to new replies.