1. Knowledge Base
  2. WooCommerce Protected Categories
  3. FAQ

Using WPML to translate WooCommerce Protected Categories

WPML Compatibility WooCommerce Protected Categories PluginWooCommerce Protected Categories is a WordPress plugin that allows you to create private, hidden product areas within a WooCommerce online shop. It is officially certified as being WPML compatible. This means that you can use the world leading WPML multilingual plugin to translate the plugin into different languages.

You can also use the Weglot plugin.

What you will need

Getting started and what to check

Is your site already configured by your developer?
Please make sure the following plugins and options are activated.

Are you setting up WPML yourself?
Follow the steps below:

  1. Set up WPML from WPML -> Languages. See the WPML Getting Started Guide for a complete reference. The initial, simple three-step setup is self-explanatory, asking you to choose your default language, a set of active languages, and a language selector. (For starters, choose the footer language selector; you can change this later.)
  2. Install and activate the core WPML plugin (WPML Multilingual CMS) first, followed by the other WPML plugins listed above.

Translating WooCommerce

Follow the steps below to set up WooCommerce Multilingual:

  1. Install WooCommerce, run the Setup Wizard and set up your store, including adding the products that you plan to protect using WooCommerce Password Protected Categories.
  2. Install WooCommerce Multilingual, run the Setup Wizard, and add translations for all your products and categories.

Translating WooCommerce Protected Categories

  1. Install WooCommerce Protected Categories.
  2. Next, create one or more protected categories in the main language for your website. For each category, select the main language and then click ‘add’ next to the languages that you wish to translate the category into:
    Translate WordPress Password Protected Categories
  3. This will take you to a page listing all the categories in the other language. Replace the category names and slugs with translations for the new language.

Translating the plugin settings page

Use one of these methods to translate the password login form:

  • Use WPML’s string translation to find the strings that need translating and add the translations via WPML. In WPML > Theme and plugins localization, select either ‘Translate themes and plugins using WPML’s String Translation only (don’t load .mo files)’ or ‘Translate themes and plugins using WPML’s String Translation and always load .mo files as backup’.
  • Create your own .po and .mo files and upload them to the site. In WPML > Theme and plugins localization, select either ‘Translate themes and plugins using WPML’s String Translation and always load .mo files as backup’ or ‘ Don’t use String Translation to translate themes and plugins’.

Note: If you are using the options in the plugin to restrict categories based on logged in users or roles, or are using the Private categories option, then no extra setup is required. This is because people will login using the WordPress login page which is translated by WPML, and you won’t be using the password login form that comes with our plugin.

Still need help?
If searching the knowledge base hasn't answered your question, please contact support.

Related Articles