easy-digital-downloads

Introduction

In this tutorial, we show you how to create a fully multilingual eCommerce site that sells digital products using Easy Digital Downloads and WPML. This makes products and stores translatable, i.e., it lets your visitors quickly and easily switch between languages and order products in their own language.

Required Plugins

Essential resources

Getting Started

Make sure to set the permalink structure to something other than the default. For instance, you can use the Post name option. This is set on the Settings -> Permalinks page. Do not forget to save the changes.

Content

  • Translate pages created by the Easy Digital Downloads plugin
  • Translate categories and tags
  • Translate products
  • Translate other texts

Translating pages

Upon activation, Easy Digital Downloads automatically creates various pages that are necessary for a functional checkout flow. These pages are:

  1. Checkout
  2. Purchase Confirmation
  3. Purchase History
  4. Transaction Failed

As an example, we will translate the Checkout page.

  1. On your WordPress dashboard navigate to Pages -> All Pages.
  2. Click on the + icon next to the Checkout page to translate the page.

click-on-the-plus-icon-next-to-the-checkout-page

  1. Click on the “Copy content from English” button to copy the text from the original language.
  2. Add your translated text to the title.
  3. Make sure that the [download_checkout] short code is copied to the body.
  4. Click the Publish button.

add-your-translated-text-to-the-checkout-page

Note that you can translate all Easy Digital Downloads pages in the same manner.

Translating categories and tags

On your WordPress dashboard navigate to Downloads -> Categories. To add a new category and translate it, follow the steps below:

Make sure that your admin bar language switcher shows your default language, in our case. it is English.

  1. Fill the category name, slug, and description, and then click on the Add New Download Category button as illustrated below.

add-a-new-download-category

  1. Click on the edit link of the category that we have just created.

edit-the-created-category

  1. Click on the add link found under the language section to translate the category.

click-on-the-add-link-to-translate-category

  1. Add your translated text and click on the Add New Download Category to save the translation.

add-your-tranalated-text-to-the-catagory

Note that you can follow the same steps to translate the downloads tags.

Translate products

We have already created a product, if you want to know how to create one, check this tutorial to guide you through.

To translate the product, follow the steps below:

  1. Navigate to Downloads -> All Downloads to see a list of all the products that you have created.
  2. Click on the + icon to add the translation.

clcik-on-the-plus-icon-to-translate-the-product

  1. Add your translated text and add the downloadable file. You are free to add a different file for download different than the one found in the default language.
  2. Click on the Publish button.

add-your-translated-text-to-the-product-and-update-your-translated-file-version

Note that WPML will automatically synchronize the non-text attributes of products. This includes the price and variable prices as they do not require translation.

Translating other texts

There are several texts that you can personalize like the Add to Cart button. You can change these texts in the default language by navigating to Download -> Settings. You can find the Add to Cart text in the Misc tab -> Button text. Similarly, you will find translatable texts on the different settings tabs. In the image below, we have edited the text on the button to be Add to Cart Change.

translate-other-texts

To translate these strings navigate to WPML -> String Translation and search for the exact string. Click on the translations link to add your translated text. Select the Translation is complete option and click Save. See the image below.

use-the-string-translation-screen-to-add-your-translation

Conclusion

You can build your multilingual website that offers downloadable products easily using Easy Digital Downloads, Easy Digital Downloads Multilingual, and WPML plugins. Following the detailed instructions in this tutorial will guide you on how to translate the pages created by Easy Digital Downloads plugin, categories, products and, other textual elements.