Walther Posted December 1, 2021 Share Posted December 1, 2021 (edited) I would like a single page being loaded using a different theme. I know it's somehow possible, because there's a hook by ModulesGarden ( https://www.modulesgarden.com/products/whmcs/geolocation-hook ) that already do it (switching the theme according the language set). I tried to dig into ModulesGarden's code (this hook is provided as source), but it's far beyond my capabilities, and I went lost... 😞 I just saw that also @MrGettingRatherFrustrated has a similar issue (he would like to switch language and currency), and also him went lost in digging ModulesGarden's code... So I realized that also WHMCS documentation is very poor about this: it seems that - somehow - it's possible in a hook to re-set system variables defining template, currency and language, but there's no "how to" about... 😞 Any idea on how to do it? Edited December 1, 2021 by Walther 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted December 2, 2021 Share Posted December 2, 2021 I feel that this is a hacky way of doing it but I couldn't think of any other way to do it in WHMCS. https://pastebin.com/B9prAf6L 1 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.