id) { Context::getContext()->cookie->ets_pr_payment= $module->id.($id_payment_method ? '-'.$id_payment_method:''); Context::getContext()->cookie->write(); } else { Context::getContext()->cookie->ets_pr_payment =0; Context::getContext()->cookie->write(); } die( json_encode( array( 'cart'=> array(), ) ) ); } if(Tools::isSubmit('submitEtsPrClosePopup') && ($id_promote = (int)Tools::getValue('submitEtsPrClosePopup'))) { if($this->context->cookie->pr_closed_popups) { $pr_closed_popups = explode(',',$this->context->cookie->pr_closed_popups); } else $pr_closed_popups = array(); $pr_closed_popups[] = $id_promote; $this->context->cookie->pr_closed_popups = implode(',',$pr_closed_popups); $this->context->cookie->write(); die('Closed'); } if(Tools::isSubmit('submitEtsPrCloseHighlightBar') && ($id_promote = (int)Tools::getValue('submitEtsPrCloseHighlightBar'))) { if($this->context->cookie->pr_closed_highlightbars) { $pr_closed_highlightbars = explode(',',$this->context->cookie->pr_closed_highlightbars); } else $pr_closed_highlightbars = array(); $pr_closed_highlightbars[] = $id_promote; $this->context->cookie->pr_closed_highlightbars = implode(',',$pr_closed_highlightbars); $this->context->cookie->write(); die('Closed'); } } }