inthanet Posted November 7, 2022 Share Posted November 7, 2022 Hi, I'm looking for a way to get the active language (not default language) within a WHMCS custom page PHP script for not logged-in site visitors. In SMART is no problem, but I need this information before because the data assigned to the SMARTY variables depends on the language. 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted November 7, 2022 Share Posted November 7, 2022 It's stored in the session. The key is 'Language'. If the key doesn't exists, the visitor is using the default langauge. 0 Quote Link to comment Share on other sites More sharing options...
inthanet Posted November 10, 2022 Author Share Posted November 10, 2022 On 11/8/2022 at 6:02 AM, DennisHermannsen said: It's stored in the session. The key is 'Language'. If the key doesn't exists, the visitor is using the default langauge. Sorry for the late feedback 0 Quote Link to comment Share on other sites More sharing options...
inthanet Posted November 10, 2022 Author Share Posted November 10, 2022 13 hours ago, inthanet said: Sorry for the late feedback I tested the with session variables, but the variable is unfortunately empty if the visitor/user not logged-in. I look for me that there is no chance to get this information on the PHP site, within the template, no problem. 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted November 10, 2022 Share Posted November 10, 2022 32 minutes ago, inthanet said: I tested the with session variables, but the variable is unfortunately empty if the visitor/user not logged-in. It's empty if they haven't selected a language. They're using the default language. 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.