Introduction:
The Discount Rules for WooCommerce plugin seamlessly works with multilingual sites and is fully compatible with WPML. This document aims to provide detailed instructions on how to create discounts specifically for multilingual setups using the Discount Rules for WooCommerce plugin.
Example Scenarios:
Store-wide 10% off.
"Bags" category (English) receives a 20% discount.
"Sacs" category (French) receives a 25% discount.
In the examples above, to implement a 10% store-wide discount, a simple product adjustment rule can be created that applies to all products, regardless of language.
However, for scenarios where discounts need to be applied to specific products or categories, separate rules must be created for each language.
For instance, if there is a category named "Bag" in English and "Sac" in French, separate rules can be established for these categories by selecting the respective language in the Language section of the rules. This allows for discounts to be provided in each language and enables different discounts for different languages.
Let’s get started,
Make sure you have already installed and activated the Discount Rules plugin. Please note that some of the features explained in the examples are available only in the PRO version.
Do More with the PRO Version
Now, let’s take a look at the examples one by one in detail.
Example 1: Store-wide 10% Off
In this scenario, customers can enjoy a 10% discount on all products throughout the store, including both English and French language products. For instance, if your site offers products in English and French, creating a store-wide discount will automatically apply a 10% discount to all products in both languages.
Creating a Discount Rule:
Go to WordPress dashboard -> WooCommerce -> Discount Rules -> Click on “Add New Rule” button.
Choose “Product Adjustment” as the Discount type.
Here is the screenshot of the rule configuration that follows:
Details of configurations are:
To create the store-wide 10% off discount rule, follow these steps:
In the rule configuration, choose "All Products" from the filter options. This ensures that the discount applies to all products in the store. Alternatively, you can select specific categories, selected products, attributes, tags, SKUs, or other options based on your requirements.
Set the discount type to a 10% percentage discount. You can also choose options like a fixed discount or a fixed price per item, depending on your preference.
Leave the language section empty as the discount is applicable to all products across all multilingual versions. There is no need to specify a language for this store-wide discount.
Once you have configured the rule, click on the "SAVE" button to successfully create the discount rule.
By implementing this rule, all customers will receive a 10% discount on their purchases from the store, regardless of the language or product they choose.
Here is the screenshot of the cart page showing discount applied:
Example 2: “Bags” category (English) will get 20% off
In this scenario, customers are eligible for a 20% discount on the "Bags" category. When creating discounts for specific categories or products, you can specify the language to which the discount applies by utilizing the Language section.
Creating a Discount Rule:
Go to your WordPress dashboard -> WooCommerce -> Discount Rules, and select the relevant language from the WordPress dashboard (e.g., English).
Click on the "Add New Rule" button and choose "Product Adjustment" as the discount type.
Here is the screenshot of the rule configuration that follows,
Details of configurations are:
In the rule configuration, choose "Category" as the filter option. Then, select the category "Bags" by typing a few characters in the filter options. You can also choose other options such as "All Products," "Selected Products," "Attributes," "Tags," "SKUs," depending on your specific needs.
Set the discount type to a 20% percentage discount. Alternatively, you can select a fixed discount or a fixed price per item based on your requirements.
In the language section, select "English" as the language since the 20% off discount is applicable to the "Bags" category in English.
Once the rule configuration is complete, click on the "SAVE" button to successfully create the rule.
As a result, customers shopping in the English store will receive a 20% discount on the "Bags" category. The discount will only apply to the specific category and language specified in the rule.
Here is the screenshot of the cart page showing discount applied:
Example 3: “Sacs” category (French) will get 25% off
This scenario allows customers to receive a 25% discount on the "Sacs" category. When configuring discounts for specific categories or products, it is possible to specify the language to which the discount applies by including it in the Language section. In this case, the discount is specifically applicable to the French language.
Creating a Discount Rule:
Go to your WordPress dashboard -> WooCommerce -> Discount Rules, and select the relevant language from the WordPress dashboard (e.g., English).
Click on the "Add New Rule" button and choose "Product Adjustment" as the discount type.
Here is the screenshot of the rule configuration that follows,
Details of configurations are:
In the rule configuration, select "Category" and search for the "Sacs" category by typing a few characters in the filter options. You also have additional options such as "All Products," "Selected Products," "Attributes," "Tags," "SKUs," and more. Choose the option that suits your requirements.
Set the discount type to a 25% percentage discount. Alternatively, you can choose a fixed discount or a fixed price per item depending on your preference.
In the language section, choose "French" as the language since the 25% discount is intended for the "Sacs" category in French.
Once the rule configuration is complete, click on the "SAVE" button to successfully create the rule.
As a result, customers shopping in the French store will receive a 25% discount specifically on the "Sacs" category. The discount will only apply to customers purchasing products in the French language.
Here is the screenshot of the cart page showing discount applied:
Similarly, it is possible to create different rules for each language based on categories, tags, attributes, and other criteria. By doing so, we can offer different discounts or provide different free products tailored to specific languages.
Some of the above discussed scenarios require a PRO version.
Note:
1. If you are unable to find products when typing in the discount rules filtersection, you can use the SKU ID of the product in the chosen language for quicker access. This will help you locate the specific product more efficiently.
2. When searching for products or categories in the filter section, it is important to switch to the specific language in WordPress. This ensures that you are searching for products within the desired language, enabling accurate and relevant results to be displayed.
Next Steps:
You may also want to check out these helpful guides:
Refer this video to know more about to translate strings using WPML:
Still unclear ?
If you need any assistance, please create a support request at our ticket system. We are always happy to assist you :)