Integrating the Booking & Appointment for WooCommerce Plugin with the WPML plugin can let your booking store offer its services in the language of your customers.
For this, you will need the WPML Multilingual CMS. You will also get the following add-ons with your purchase:
WooCommerce Multilingual
WPML Media
WPML String Translation
To set up WPML, you will require all the plugins as mentioned earlier.
A. WPML Setup
B. WooCommerce Multilingual Set up
C. Translating Plugin Strings
D. Syncing Booking Details For Different Languages
E. WooCommerce Multi-currency
A. WPML Setup
While activating each plugin, you will get the following notice showing which plugins will be needed to complete the setup:
Once the plugins are activated, you will need to run the setup.
- Select the language of your existing content
- Select the language in which you want your content to be translated
- Select the language switcher
- Register your site to finish the setup and for future update notifications
You will need to add your website on wpml.org and generate a secret key, to complete the setup:
Generate the key after adding the website URL where you are set WPML.
Paste the secret key on your website.
After registering your site, Run the Setup for Media.
The Media translation will duplicate all your existing media files in the selected language.
All the media files for new content will also be duplicated.
B. WooCommerce Multilingual Set up
To set up WooCommerce Multilingual, run the WooCommerce Multilingual Setup Wizard from the notice displayed below:
Step 1:
Step 2:
Step 3:
Step 4:
Step 5:
There are a few more steps that you need to perform To make your e-commerce store multilingual follow the other steps that need to be performed from here: Advance setup for WooCommerce Multilingual
C. Translating Plugin Strings
Activate the plugin you want to translate.
In this case, it will be the Booking and Appointment plugin for WooCommerce.
On activating the plugin, you will find a button asking if you want to scan the translatable strings from the plugin.
On clicking the ‘Scan now’ button, you will be taken to the ‘Theme and Plugins localization’ page.
Note: Under ‘Select how to translate strings in the theme and plugins’ set it to ‘Translate the theme and plugins using WPML’s String Translation and load .mo files as backup.’
As the setting says, it will load the .mo files as a backup.
Now select your plugin and scan the strings.
You can also scan your plugin from the ‘Theme and Plugins localization’ page’s strings in the Plugins section.
1. Translating the strings
Translate the strings of the plugin by clicking on the ‘View strings that need translation’ button.
You can even find all the strings from the String Translation menu page.
You will then be taken to the String Translation page.
Select the string and add the translated string.
Select the ‘Translation is complete’ checkbox, and save the translation.
You can check the translated strings of the plugin (Bookable product) on the product page.
2. Translating WooCommerce products
Go to your WooCommerce Product and select the Duplicate checkbox under the Language meta box:
This will generate a duplicate product in the selected language with all the settings from the existing product.
Note: Here the booking calendar also gets translated into the selected language.
You can also check the content setup for each product under the Multilingual Content Setup on the Edit Product page.
D. Syncing Booking Details For Different Languages
So far, products have been translated and displayed in different languages on the front end.
It is also important that the selected booking settings for all added products in English get synced for the same products in different languages.
Let’s say that a customer adds bookings for a specific period.
Another customer selects the same product in a different language.
The availability of this product will be displayed considering the booking made by the previous customer.
For instance, a booking for Hotel Country Inn for 10 days from 22nd December 2017 to 1st January 2018 was made.
The total bookings are set to 10 bookings.
This booking is set for the product Hotel Country Inn in the English language as shown below:
Adding booking details for products in the English language
This product has been booked for a maximum number of days and is in English.
Now if a customer selects the same product in the French language for the same specified dates, then the booking calendar will show that these dates are booked as shown below:
The same product in the French language shows as unavailable for booking
As you can see, the same product Hotel Country Inn, when selected in French, shows the dates 22nd December 2017 to 31st December 2017 disabled.
When you mouse hover over the dates, it shows a message Unavailable for booking as Indisponible pour réservation.
Thus this implies that the Bookings of the products are synced with different languages to avoid over-booking hassles.
E. WooCommerce Multi-currency
Find the settings under WooCommerce > WooCommerce Multilingual menu page > Multi-currency tab.
To set Currency, click the Add currency button:
Select your currency and configure other settings:
You can let the product calculate the price in another currency automatically.
This means it will take the conversion rate of the selected currency from the global setup.
The other option is setting the conversion rate for each product manually.
You can see the multi-currency functionality changes on the product page.
To conclude, setting up WPML and WooCommerce Multilingual is quite easy and quick. Benefit from translating your Booking & Appointment plugin to attract more customers!
Lastly, it gives us immense pleasure to share that we’re WPML Partners!