ccckkk19 Posted November 8, 2011 Share Posted November 8, 2011 hey guys, i wanna build in a simple PHP IF into a module with which i can differentiate the different language IDs: for example if($_GET["id_lang"] == "1") { ##my output## } esle { ##my other output## } That only works when the language Var is listed in the url (index.php?id_lang=1) But i think that the language id is transferred to a session. My question now is how i can read out the session with php in order to receive the determined language id my idea for example:.: if(session(id_lang) == "1").... anybody has an idea how to make this work Link to comment Share on other sites More sharing options...
Broceliande Posted November 8, 2011 Share Posted November 8, 2011 Hi, No sessions in prestashop indeed , but cookies (and it's a global var) : global $cookie; $id_lang = $cookie->id_lang Link to comment Share on other sites More sharing options...
Recommended Posts