Buy B2BKing
$199 $149
WPML is a powerful translation plugin, ideal for translating your site to multiple languages, and allowing customers to switch between languages (with a language switcher dropdown).
Here's what you need to know when using B2BKing with WPML:
There are many guides out there for WPML translation, and we recommend starting with the official guide: https://wpml.org/documentation/getting-started-guide/
For general translation of plugin texts, you can usually use WPML's String Translation: https://wpml.org/documentation/getting-started-guide/string-translation/
WPML also has a Multilingual module that allows WooCommerce product translation: https://wpml.org/documentation/related-projects/woocommerce-multilingual/
An important aspect of translating B2BKing with WPML is translating admin texts such as "Login to view prices" or "Please login to access the B2B portal".
Since these texts are not normal strings but "admin texts" in WPML, they require a special approach. How to do it:
Step 1) Go to WPML->String Translation
Step 2) Scroll to the bottom of the screen and click on "Translate texts in admin screens »"
Note: In newer WPML versions, it is found on that same page, by clicking on the following elements:
Step 3) Find the B2BKing texts, check the boxes, scroll to the bottom of the screen, and click Apply
You should see a message "The selected strings can now be translated using the string translation screen"
Now you can see the strings like this in WPML->String Translation (they show with the prefix "admin_texts_"):
Step 4) You can now translate these as you would normally with WPML:
That's it!
If we check the front page in English we will see it as follows:
If we switch to French, we will then see it as follows:
Note: In the latest version of B2BKing / WPML, you may no longer see the "+" signs. Instead, you'd have to click on each field, and then translate via the right-hand sidebar:
When you are setting up B2B prices such as special prices for B2B users, you may want to also copy these automatically / sync them to the translated versions of the products.
That is possible by setting the B2BKing product meta values to "Copy" under the WPML "Multilingual Content Setup" screen.
You can do it for each product, or in WPML -> Settings:
These meta values contain information such as the tiered pricing or group pricing, and by setting it to COPY, it automatically gets added to each translated post.
Specifically the values that contain group and tiered prices have this form:
"b2bking_regular_product_price_group_***"
"b2bking_sale_product_price_group_***"
"b2bking_product_pricetiers_group_***"
We advise to also enable this checkbox in order to see these settings for each product:
Powered by BetterDocs