tijojoel Posted January 12, 2018 Share Posted January 12, 2018 Hi, From AdminOrdersController.php I want to fetch a cookie variable. All other variables can be fetched only the filtration variable cannot. How to get the filtration variable from cookie array? Link to comment Share on other sites More sharing options...
Rhobur Posted January 14, 2018 Share Posted January 14, 2018 You can retrieve a variable from the cookie like this: $this->context->cookie->variable_name, it is described in the developer docs. Link to comment Share on other sites More sharing options...
tijojoel Posted January 15, 2018 Author Share Posted January 15, 2018 (edited) How this value can be retrieved " ordersorderFilter_a!date_add". I am getting syntax error due to ! In cookie array how do I access [cookie] => Cookie Object ( [_content:protected] => Array ( [date_add] => 2017-11-24 12:06:16 [id_lang] => 1 [detect_language] => 1 [id_employee] => 1 => [email protected] [profile] => 1 [passwd] => 8d2f564977b1eea3356236ee2a2addbe [remote_addr] => 2130706433 [shopContext] => s-1 [LastCheck] => 1512016103 [submitFiltertab] => 0 [multicolor_fee] => [submitFilterproduct] => 0 [submitFilterorder] => 1 [ordersorderFilter_pog!id_organization] => 3 [ordersorderFilter_a!date_add] => a:2:{i:0;s:0:"";i:1;s:0:"";} [checksum] => 3592475459 ) 1. ordersorderFilter_pog!id_organization 2. ordersorderFilter_a!date_add this filters? Edited January 15, 2018 by tijopromantia (see edit history) 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