Integrate Advanced search 4 module with Transformer theme v4 and Panda theme v2
1 2 3 4 | public function hookActionProductSearchComplete($params){ $this->hookActionProductSearchAfter($params); return ; } |
- Download the tool, unzip it.
- Upload the for_a4.php to your site's root folder.
- Run it by open this url on your browser http(s)://youdomain/for_a4.php you will get a "Success".
- Remove the fix_for_a4.php file.
3. Put this code to the Custom CSS code field in the Theme editor module.
1 | .PM_ASBlockOutput.PM_ASMobileMode .PM_ASBlockTitle:after, .PM_ASBlockOutput.PM_ASMobileMode .PM_ASearchTitle:after{content: "\E813";font-family: fontello;}.PM_ASBlockOutput.PM_ASMobileMode.PM_ASMobileVisible .PM_ASBlockTitle:after, .PM_ASBlockOutput.PM_ASMobileMode.PM_ASMobileVisible .PM_ASearchTitle:after{content: "\E856";} |
4. Go to BO > Design > Theme > Choose layouts > Set the "module-pm_advancedsearch4-searchresults" and the "module-pm_advancedsearch4-seo" to "Two columns, small left column".
5. Remove this code from these files /modules/pm_advancedsearch4/views/templates/front/1.7/seo-page.tpl, /modules/pm_advancedsearch4/views/templates/front/1.7/search-results.tpl
1 2 3 | {block name='breadcrumb'} {include file='_partials/breadcrumb.tpl'} {/block} |
6. To make the A4 block to be open on the mobile left column, you need to replace this code in the /modules/pm_advancedsearch4/views/templates/hook/1.7/pm_advancedsearch_header_block.tpl file.
1 | PM_ASBlockOutputVertical |
With
1 | PM_ASBlockOutputVertical PM_ASMobileVisible |
Integrate Advanced search 4 module with Transformer theme v3 and Panda theme v1
1 2 | if (typeof(stlazyloading) == 'function') stlazyloading(); |
Tips of using the Advanced search 4 module
- Set the value of "Number of products per page" filed in your "search engine" to be the same as the "Products per page" option in the Theme editor module.
- The module can't work with the Infinite scroll and Load more button features.
- If you find all products showing out after switching off filters, then you need to change the "Starting category for the search (default is user-context category)" setting in your search engines.
Contact us if you have any problems using the Advanced Search 4 Module with Transformer theme and panda theme, we will help you, we will continue updating this tutorial till the module works 100% fine with Transformer theme and panda theme.
Is it possible to add "Lazy loading" to Transformer 4 & AS4 ?
If you use Transformer v4, then the lazyloading will still work fine when the A4 is installed.
Good afternoon. Help install the module Advanced Search 4 on the Warehouse theme. Ready to pay.
Version module 4.12.09
Hi,
In presta 1.6 I Cannot find the function "hookActionProductSearchAfter function," to put the code after.
Is this for 1.6 as well ?
Daniel
Hello,
This article seems to be for Prestashop 1.7
Do you have the fix for Prestashop 1.6?
If you can provide me your FTP and BO details, I can try to integrate the module for you on your site, and then create a tutorial about how to do the integration on Prestashop 1.6.
Jovicyr - have you integrated it on PResta 1.6 ? I am interested as well !