Contents

Update Service

Save yourself time by using our professional update service. Your update will be completed in-house by our team who will ensure everything goes smoothly with no loss of customizations.

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

Is This Update Required?

We always recommend keeping your WHMCS Template up to date to ensure you benefit from the latest features. If you purchased your theme after the launch of (30th August 2022) you do not need to follow this update as it will already be applied to your theme version.

How To Update

You will need to follow every step below to update to Add RTL language support.

1. Complete Earlier Template Updates

Before completing this update it is important to complete any previous updates that may have been missed. Check the launch dates of each update with the date you purchased to see which updates need to be completed.

View All Template Updates

2. 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 english.php) they will be listed as manual edits in step 4 to ensure that any edits made to these files will not be lost.

Steps To Upload

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'd 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.

3. 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 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)

4. Update Completed

You have now finished updating your WHMCS Template to Add RTL language support. If you see any miss alignment when viewing your website you may need to clear your browser cache to force the updated files to be rendered. If you run into any issues, submit a ticket and we will be happy to assist you.

Comments

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