skip to Main Content

WPML and Product Alerts

WPML is a popular plugin for translating the text within your website to various languages for your international customers. WPML and WooCommerce together provide a great platform for selling product world-wide, but that means customers speaking different languages. You will want to ensure that your restocking form and email alerts translate accordingly.

Before we get started, if you do not have a copy of WPML, you can purchase one here.


  • WPML Multilingual CMS 3.1.5+
  • String Translation 2.0+
  • WooCommerce Multilingual

Getting Started

Install and activate the necessary WPML plugins (WPML Multilingual CMS, WPML String Translation, WPML Translation Management). Once these have been installed, you will also need to install WooCommerce Multilingual to manage the translations for your ecommerce shop.

Set up WPML from WPML->Languages. WPML has a simple three step process to guide you through installation, but if you need any further help, please see the WPML Getting Started Guide for a complete reference.

Translating Your Alert Details

After you have gone through each settings page and successfully submitted your changes, this plugin will have scanned through the settings and found all translatable texts. During the process, it will register them with WPML so that they can be later translated. Because this information is not part of the post or page structure of WordPress, its translation settings can be found WPML->String Translation.

A complex site may contain many strings to translate. Using the display filter, at the top of the String Translation page, filter the Domain to display  ‘be-product-alerts’. Each registered string is assigned a Name to identify the text with. The Name values for the restocking form text will begin with ‘form_’ and then completed with the ID of the label. For example, ‘form_subscribe_header’ is the text that appears at the top of the form in a headline wrapper. From here you should also be able to find the various strings registered to each email alert


Click on the translations link to open the translation editor. Be sure to click on ‘translation is complete‘ after you translate. Incomplete translations will not appear in the site.

Not finding the translation you need?

Sometimes the strings you need to translate may not have properly registered themselves, but fear not for there is another way! Visit your string translation settings at WPML->String Translation and scroll down to the bottom of the page. Click on the link Translate strings in admin screens, and search for the missing string using one or more words that can be found in the text. Once found, mark the checkbox next to the desired string or strings, and submit the form by click Apply at the bottom of the form. Now when you return to your String Translation settings page, the missing string should now be visible and ready for translation.

Deleting the Translation

Perhaps you not longer use a certain shipping title and wish to remove the strings associated with it. Simply select the strings you want to remove and click “Delete”.

Learn more about String Translation

  • Was this article helpful ?
  • yesno
0 out of 0 visitors found this article helpful
Views: 25
Back To Top