Note: This article is outdated and may not work properly with latest versions of WooCommerce Bookings and WPML. Please check this tutorial instead.
Your company is growing and it’s now international! You need a multilingual store and if you are running it with WordPress, you have to use WPML and WooCommerce.
If you do not have bookable products, then everything is ok. WooCommerce is 100% compatible with WPML. But what if you have bookable products such as hotel rooms or appointments?
You need WooCommerce Bookings too.
There are a few tweaks to do before to translate bookable products, or you will not be able to localize product resources.
What do i need?
Let’s take a look to the required plugins for this tutorial.
First of all, you need WooCommerce and WooCommerce Bookings to create a store with bookable products.
Then you need WPML Multilingual CMS to make your website multilingual. Why the Multilingual CMS package? Because WPML needs some extensions to work properly with WooCommerce and they are available only with the Multilingual CMS package.
The last thing you need is WooCommerce Multilingual free plugin.
Ok, what now?
Now you have to install all these plugins. You already did it? Great! Then we can start.
Create your first bookable product. Add everything you need, prices, resources, and so on. Now go to WPML > Translation Management > Multilingual Content Setup > Custom posts and find Bookable resources in the post types table
Be sure to select Translate for Bookable resources.
If you go to Bookings > Resources you will find all your resources ready to be translated in your website languages.
Click the button + to translate them.
When everything is localized, you need to translate your product and link the resources to it.
Usually you can translate WooCommerce products with WooCommerce Multilingual, but with WooCommerce Bookings you can’t use it because you will not be able to link translated resources to your product.
You need to disable WooCommerce Multilingual interface and use the default WooCommerce interface to translate products.
To do this, go to WPML > WooCommerce Multilingual > Product Translation Interface and select Go to the native WooCommerce product editing screen.
Now you can translate the product in Products > All Products (edit one) selecting the + button below the language flag and link the translated resources.
I hope this tutorial will make your life easier with WooCommerce Bookings and WPML.
Do not forget that if you are in troubles you can find a lot of help on Google or in WPML and WooThemes knowledge bases!
Leave a Reply