public function displayContent() { if (!$this->id_seo && !$this->hookName || !$this->id_search) { die; } if (Tools::getValue('ajaxMode')) { $this->ajax = true; } $objPM_AdvancedSearch4 = new PM_AdvancedSearch4(); if (!Tools::getValue('ajaxMode')) { $_GET['only_products'] = 1; echo $objPM_AdvancedSearch4->displayAjaxSearchBlocks($this->id_search, $this->hookName, 'pm_advancedsearch.tpl', (int) Tools::getValue('with_product', true), $this->criterions, $this->criterions_hidden, true); unset($_GET['only_products']); } else { try { AdvancedSearchCoreClass::_hookExec('header'); } catch (SmartyException $e) { } $ajaxMode = true; if (Tools::getValue('only_products')) { $objPM_AdvancedSearch4->displayAjaxSearchBlocks($this->id_search, $this->hookName, 'pm_advancedsearch.tpl', (int) Tools::getValue('with_product', true), $this->criterions, $this->criterions_hidden, true); } else { if ($this->next_id_criterion_group && !$this->reset) { if (is_array($this->criterions) && sizeof($this->criterions)) { $objPM_AdvancedSearch4->displayAjaxSearchBlocks($this->id_search, $this->hookName, 'pm_advancedsearch.tpl', (int) Tools::getValue('with_product', true), $this->criterions, $this->criterions_hidden); } else { $objPM_AdvancedSearch4->displayNextStepSearch($this->id_search, $this->hookName, $this->next_id_criterion_group, (int) Tools::getValue('with_product', true), $this->criterions, $this->criterions_hidden); } } else { $objPM_AdvancedSearch4->displayAjaxSearchBlocks($this->id_search, $this->hookName, 'pm_advancedsearch.tpl', (int) Tools::getValue('with_product', true), $this->criterions, $this->criterions_hidden); } } } if ($this->ajax) { die; } }