xezus Posted July 9, 2013 Share Posted July 9, 2013 Hi is there any way how to access to front office cookie in back office? (in a module exactly)? Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 what ps version you use ? everything depends on it Link to comment Share on other sites More sharing options...
xezus Posted July 9, 2013 Author Share Posted July 9, 2013 Sorry I am using 1.5.4.1 Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 in this case you can use context object more informations read this: http://doc.prestasho...+Context+Object Link to comment Share on other sites More sharing options...
Valérie Assetskaya Posted July 9, 2013 Share Posted July 9, 2013 Hi, Context::getContext()->cookie Best regards. Link to comment Share on other sites More sharing options...
xezus Posted July 9, 2013 Author Share Posted July 9, 2013 But then I get back office cookie or I thing it's back office cookie because I missing some values like id_compare. and this is what I got Cookie Object ( [_content:protected] => Array ( [date_add] => 2013-07-08 23:09:36 [id_lang] => 1 [id_employee] => 1 [email] => ********************** [profile] => 1 [passwd] =>******************************9 [remote_addr] => [shopContext] => s-1 [id_currency] => 1 [checksum] => -931587131 ) [_name:protected] => 44c621219e3f66a7d4725c437c8fb0f8 [_expire:protected] => 1375094831 [_domain:protected] => [_path:protected] => /prestashop/ [_cipherTool:protected] => Rijndael Object ( [_key:protected] => nKu2bzVPxweVm5kO2speYzzXNZEsfENu [_iv:protected] => �n�U�5���ɨR�g� ) [_key:protected] => iYUnqICnopTLOjXhqCS71FszYkbznWD2m2W0zCSZjMKEAt6LwyE9ADgw [_iv:protected] => xd7eIIq7 [_modified:protected] => [_allow_writing:protected] => 1 ) Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 if you're browsing front office you will get the front office cookie read this: http://doc.prestasho...lesofContextuse you've got there examples of usage it works a bit different than $cookie global variable from 1.4 Link to comment Share on other sites More sharing options...
xezus Posted July 9, 2013 Author Share Posted July 9, 2013 Oh now I understand a little bit more. Thanks for your help! Link to comment Share on other sites More sharing options...
israelmekomou@gmail. Posted December 4, 2018 Share Posted December 4, 2018 Hi, I have a similar problem but my ps_version is 1.7.4.0 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now