Multilanguage Cart Release 1.1.12
Changelog
Type | Description |
---|---|
New |
Added support for multi-language Client custom fields (names, descriptions and dropdown options) |
New |
New page that allows you to translate Client custom fields |
New |
New page that allows view and manage existing Client custom fields |
New |
To ease the translation of the interface of the module (back-end) in lang folder you can now find all languages of WHMCS |
Changed |
In order to support the new feature described above, the integration page has been updated |
Changed |
For the same reason, the Automatic Integration script has been updated |
Upgrade instructions
Steps | Description |
---|---|
1 | Backup your mod_pstranslations table in database. As always there should be no problem with the update but this time we're going to change the structure of the table so it's advisable to backup it |
2 | Run this query in your database from phpMyAdmin:ALTER TABLE `mod_pstranslations` ADD `options` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `description`; |
3 | Open your clientregister.tpl, viewcart.tpl and clientareadetails.tpl template files. In all these files find:{$customfield.name} Replace it with: {$pstccf[$customfield.id].name} |
4 | Still in all these files, find:{$customfield.description} Replace it with: {$pstccf[$customfield.id].description} |
5 | Now find:{$customfield.input} Replace it with: {if $pstccf[$customfield.id].options}{$customfield.input|replace:$pstccfopt[$customfield.id]:$pstccf[$customfield.id].options}{else}{$customfield.input}{/if} |