Loading...
Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
linenumberstrue
// Получаем промокод из cookie 
$roistat_visit = ( ! empty($_COOKIE['roistat_visit'])) ? $_COOKIE['roistat_visit'] : null;

...

Code Block
languagephp
linenumberstrue
// roistat_visit 
if (isset($this->request->post['roistat_visit'])) { $this->data['roistat_visit'] = $this->request->post['roistat_visit']; } elseif ( ! empty($order_info)) { $this->data['roistat_visit'] = $order_info['roistat_visit']; } else { $this->data['roistat_visit'] = ''; }

...

Code Block
languagephp
linenumberstrue
// ROIstat 
$this->data['roistat_visit'] = $order_info['roistat_visit'];

...