Using WPML to translate WooCommerce Quick View Pro
WooCommerce Quick View Pro is a WordPress plugin that adds quick view lightboxes to your online store. Some of our customers choose to translate their lightboxes into multiple languages using WPML. We recommend using WeGlot or TranslatePress rather than WPML because they are easier to use and are guaranteed to work with other plugins, including all of Barn2's plugins. However, if you wish to use WPML then this article will provide basic guidance on use the two plugins together.
Please note that if you have any problems using WPML then unfortunately this does not come under our plugin support. We recommend contacting WPML support or asking your developer to investigate the problem for you.
What you will need
- WooCommerce Quick View Pro plugin
- A recent version of WPML (version 126.96.36.199 or above), with the String Translation and Translation Management plugins active
- A recent version of WooCommerce
- WooCommerce Multilingual
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:
- 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.)
- Install and activate the core WPML plugin (WPML Multilingual CMS) first, followed by the other WPML plugins listed above.
Follow the steps below to set up WooCommerce Multilingual:
- Install WooCommerce, run the Setup Wizard and set up your store, including adding the products that you plan to list in a product table.
- Install WooCommerce Multilingual, run the Setup Wizard, and add translations for all your products, categories etc.
Translating WooCommerce Product Table
Install WooCommerce Quick View Pro on your site.
The contents of the quick view lightbox will appear in the correct language automatically, assuming that you have translated all your products using the WooCommerce Multilingual plugin (see previous section).
If you have enabled the option to show quick view buttons in your store, then you may wish to translate the button text. You can do this by using WPML’s string translation to find the strings that need translating and add the translations via WPML:
- Go to WPML > Theme and plugins localization.
- Search for the text that you have entered for the quick view buttons in your main language (e.g. 'Quick view' or 'Customize').
- Click the option to translate the string for each instance of this text.
- Add the translations, click 'Translation is complete' and then 'Save'.