Advanced Search 4 is not 100% compatible with
Transformer or
Panda theme on PS 1.7.x, but it's easy to fix that by adding a simple line of code
Go to /modules/pm_advancedsearch4/controllers/front/advancedsearch4-17.php and add
parent::initContent(); just after
parent::init(); (line 53), like this:
Original
advancedsearch4-17.php file
Code:
$this->idSearch = (int)Tools::getValue('id_search');
$this->searchInstance = new AdvancedSearchClass((int)$this->idSearch, (int)$this->context->language->id);
parent::init();
$this->setSEOTags();
$this->setCriterions();
advancedsearch4-17.php after modification
Code:
$this->idSearch = (int)Tools::getValue('id_search');
$this->searchInstance = new AdvancedSearchClass((int)$this->idSearch, (int)$this->context->language->id);
parent::init();
/** Transformer Fix Start **/
parent::initContent();
/** Transformer Fix End **/
$this->setSEOTags();
$this->setCriterions();
That's all!
Note: for those which are afraid to modify some php code (or just don't know how to do it), I have add a zip with the file already modified
(3 files: advancedsearch4-17.php (, advancedsearch4-17_original -a back-up from the original file- & advancedsearch4-17_Transformer-fix.php -a back-up from the fix-, so you can revert at any time just by renaming the file)
Optional: If you think that the look from
Advanced Search 4 is somewhat ugly in your front office, go to the module Theme Editor -> Custom Code -> Custom CSS Code, and add this bunch of CSS lines:
Code:
/* ADVANCED SEARCH 4 Cosmetic Fix */
#PM_ASBlock_1.card {border: 0px;}
.card-header {font-size:12pt;background-color: #ffff;border-bottom: 0px;padding-left:0;padding-right:0;padding-bottom:3px;}
.card-block{padding-left:0;padding-right:0;}
.PM_ASBlockOutputVertical .PM_ASCriterionsGroupTitle.h4{font-size:12pt;font-weight: normal;border-bottom:0px;padding-bottom:3px;
}
Now
Advanced Search 4 fit perfectly in your Transformer or Panda theme