Harii Posted April 7, 2022 Share Posted April 7, 2022 (edited) Can somebody help me how to Customize the Affiliate Page ! Edited April 7, 2022 by Harii 0 Quote Link to comment Share on other sites More sharing options...
yggdrasil Posted April 7, 2022 Share Posted April 7, 2022 It would be more helpful if you actually posted what changes you need. Without information we can't guess what you want to customize 😁 0 Quote Link to comment Share on other sites More sharing options...
Harii Posted April 7, 2022 Author Share Posted April 7, 2022 I want to edit some words and where is file location ! 0 Quote Link to comment Share on other sites More sharing options...
yggdrasil Posted April 7, 2022 Share Posted April 7, 2022 (edited) 6 minutes ago, Harii said: I want to edit some words and where is file location ! The words are under the language files located at: /your-installation/lang/english.php Make a copy of that file and put it under: /your-installation/lang/overrides/english.php To avoid future updates from writing over your changes. The template file is located under: /your-installation/templates/your-theme/affiliates.tpl Assuming "your-theme" is the theme you are using as frontend. Have fun 😁 Edited April 7, 2022 by yggdrasil 1 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted April 7, 2022 Share Posted April 7, 2022 18 hours ago, yggdrasil said: The words are under the language files located at: /your-installation/lang/english.php Make a copy of that file and put it under: /your-installation/lang/overrides/english.php The proper way is actually _not_ to make a copy of the existing file. Just create a file with the same name and only change the strings you need to change 🙂 0 Quote Link to comment Share on other sites More sharing options...
yggdrasil Posted April 7, 2022 Share Posted April 7, 2022 (edited) 30 minutes ago, DennisHermannsen said: The proper way is actually _not_ to make a copy of the existing file. Just create a file with the same name and only change the strings you need to change 🙂 Sure, performance wise, but I found out that if you do a lot of translations, it's easier just to have the entire language file copied and be able to quickly search for the line and change over copying and pasting individual strings one by one from the original file to your override file. Keeping the same structure keeps the number positions, which makes it easier to merge and compare the locale files with new strings as they come up with updates. This means the line numbers for that string will always stay the same vs the original file. And I just added my own customized strings to the end of the file. If you just change one or two words here and there, that probably makes sense. If you change most of the WHMCS text, I found that approach cleaner. Edited April 7, 2022 by yggdrasil 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted April 8, 2022 Share Posted April 8, 2022 @yggdrasil Yes, doing what you're suggesting will work just fine. But, it's resulting in a lot of duplicate code, and if WHMCS ships translation fixes to the language you're changing, you're basically going to overwrite these fixes. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.