Right-to-Left Language Support on BuyNow Templates
This tutorial explains how to set up your BuyNow order pages to support right-to-left language sets such as Arabic and Hebrew.
1. Built-in Support for Arabic and Hebrew on all Plimus Templates
All Plimus default templates such as Plimus Modern (#2) support right-to-left langauges including Arabic and Hebrew. Use of the default templates means that users can simply select the relevant language and the relevant BuyNow fields will be correctly rendered.
The screenshot above shows the automatic inclusion of the special right to left tag <#RTL_CLASSNAME#> in the Plimus BuyNow Template set up page.
2. Customer can select Relevant Language
When customers select 'Arabic' to view the page, then Arabic field information is correctly displayed. Customers can complete the form input fields in their preferred language.
3. All other Templates must be Activated at set up level with the <RTL_CLASSNAME> Tag with supporting CSS
Custom BuyNow templates and others besides the Plimus defaults, need to be manually activated to render right-to-left languages correctly.
This is done by following these instructions and requires some CSS skills, in which Plimus can assist.
1. Add a class attribute to the html element that contains the <#content#> tag, and add the <#RTL_CLASSNAME#> tag as the value of the class attribute.
For example:
<div id="content" class="<#RTL_CLASSNAME#>">
<#CONTENT#>
</div>
As a result, in the BuyNow, whenever a right-to-left language is chosen, the tag will be resolved into the "pli-rtl" string, as follows:
class=" pli-rtl"
When a left-to-right language is chosen the tag will resolve into an empty string, as follows:
class=" "
2. The "pli-rtl" class can now be used for css that will apply only when a right-to left language is chosen, and will not affect other languages.
3. You may use the default Plimus “pli-rtl” css class that exists in the "/style/css/new-template.css".
4. When using the Plimus default BuyNow templates this css is automatically embedded.
For your custom templates, please ensure you supply your own CSS (based on the Plimus one).
Should you need additional assistance just open up a support ticket from your Plimus control panel and our Seller Support team will be delighted to help.
