context->cookie->soflexibilite_checkOPC = 42; else if ($check === '1' && $this->context->cookie->soflexibilite_checkOPC === '42') $retValue = 'OK'; else if ($check === '42') $retValue = $this->context->cookie->soflexibilite_checkOPC; else $retValue = $this->context->cookie->soflexibilite_checkOPC = $check; } else return (false); $result = ob_get_clean(); if ($result) $output = $result; else $output = null; $json = array( 'output' => $output, 'status' => true, 'ret' => $retValue ); die(Tools::jsonEncode($json)); } } $_soflexibilite_checkPointSelectedOPC = new SoFlexibiliteCheckPointSelectedOPC(); $_soflexibilite_checkPointSelectedOPC->save();