WPML

Overview

This guide will help you ensure that the Country-Based Restriction Plugin is fully compatible with WPML (WordPress Multilingual Plugin). WPML allows you to translate your website into multiple languages, and our plugin provides the ability to restrict products based on the customer’s country. To maintain these restrictions across all languages, follow the steps outlined below.

Key Compatibility Points

Our plugin offers two methods for restricting products based on country:

  1. Product-Level Restrictions:
    • These restrictions are applied individually to each product.
    • You must save the restriction rules with the same settings for each language version of the product.
  2. Bulk Restrictions:
    • These restrictions are applied to multiple products based on categories.
    • You must set bulk restrictions with specific steps to ensure compatibility across all languages.

Step-by-Step Guide

1. Ensuring Product-Level Compatibility

If your store uses three languages (e.g., English, German, and French), follow these steps to ensure product-level restrictions are compatible across all languages:

  • Set Restrictions in Default Language:
    • Go to the product page in your default language (e.g., English).
    • Apply the necessary country-based restriction rules for this product.
blank
  • Apply Restrictions to Translated Products:
    • Switch to the translated product versions (e.g., German and French).
    • Apply the same restriction rules as you did for the default language.
blank
  • Save Changes:
    • Save the restriction settings for each language version of the product.

2. Ensuring Bulk Restriction Compatibility

To apply bulk restrictions across multiple products in different languages, follow these steps:

  • Select “All Languages” in WPML:
    • In the WPML language dropdown located in the admin toolbar header, select the “All languages” option.
    • This ensures that the rules you set will apply across all languages in your store.
blank
  • Set Bulk Restrictions with All Language Categories:
    • Once “All languages” is selected, go to the Bulk Restriction settings.
    • Set up the restriction rules by selecting the categories relevant to each language available in your store (e.g., English, German, French).
blank
  • Save the Rule:
    • After selecting all relevant categories, save the restriction rule.
    • This will apply the restrictions across all languages in your store.
  • Test the Restrictions:
    • Ensure that the bulk restrictions work as expected in all languages by testing them on your site.

Conclusion

By following these steps, you can ensure that the Country-Based Restriction Plugin works seamlessly across all languages supported by WPML. This guarantees that your product restrictions are consistent and effective, regardless of the customer’s chosen language.

$119.00

Billed annually

Buy Now