Contents

Update Service

Save yourself time by using our professional update service. Your template will be updated in-house by our team who will ensure everything goes smoothly.

Order Now ($30)

In this tutorial you will learn how to update your WHMCS Template with RTL language support.

Due to the amount of customizations in this version updating to v2 will cause the following:

How To Update

You will need to follow every step below to update your template to support RTL languages.

1. Upload The Files

Want to save time? You can hire us to update your template.

The next step is to upload the files from the update ZIP we have carefully prepared. The files contained within this update are unlikely to have been modified by most users as they are core client area files. If there are changes required to files that are more likely to have been edited (such as header.tpl, template.css, english.php) they will be listed as manual edits in step 2 to ensure that any edits made to these files will not be lost.

Steps To Update

1. Make a full backup of your WHMCS files & database for safety

2. Download the update files >> Download RTL Update (.zip)

3. Extract the ZIP file to your desktop

4. Rename the /upload/templates/your_active_template/ to the name of your active Zomex template you're updating (e.g stellar, universe, eco-net etc)

5. Upload the contents of the upload directory using an FTP client to:

/whmcs_path/

Ensure that your FTP client does not replace directories and instead adds/overrides the new files within the existing directory. We recommend FileZilla which is free and will work correctly out of the box.

If you have made customisations to any files contained in the ZIP we recommend comparing your version and the updated version so you can re-apply your customisations manually.

2. Apply Manual File Edits

The final step is to make manual edits to some files. These edits are made manually as there is a higher chance that the files may have been customized. Manually applying the RTL edits ensures that any prior customisations are safe.

Open: /whmcs_path/templates/your_active_template/includes/head.tpl

Find the following code:

{assetExists file="custom.css"}

Above that paste the following:

{if $LANG.textdirection eq "rtl"}
	<link type="text/css" rel="stylesheet" href="{$WEB_ROOT}/templates/{$template}/css/rtl.min.css" />
{/if}

Open all of the language files within: /whmcs_path/modules/addons/zomex_template_manager/lang/ (english.php, arabic.php etc)

Paste the following to the bottom of each file (before the ending ?> tag). For the languages that you wish to enable RTL language direction (i.e arabic.php, hebrew.php etc) change "ltr" to "rtl":

/*
-----------------------------------------
---------   Language Functions   ---------
-----------------------------------------
*/

$_LANG['textdirection'] = "ltr"; # Set the text direction of the template (i.e ltr for English, rtl for Arabic)

Comments

If you have any questions please leave a comment below or contact our support.