- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2020
05:37 AM
11-05-2020
05:37 AM
advanced search link in search results page
hi
is there a configuration that places a link for a advanced search in the search result page?
thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2020
09:26 PM
11-05-2020
09:26 PM
Re: advanced search link in search results page
Hello @mb_manager
No their is no configuration for that but you can put link using below code to your theme file:
- Create app/design/frontend/[Theme]/[thememodule]/Magento_AdvancedSearch/layout/catalogsearch_result_index.xml
<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="additional"> <block class="Magento\Framework\View\Element\Template" name="search.result.advance.link" as="searchResultAdvanceLink" template="Magento_AdvancedSearch::advance_link.phtml" /> </referenceContainer> </body> </page>
- Create app/design/frontend/[Theme]/[thememodule]/Magento_AdvancedSearch/templates/advance_link.phtml
<div class="advance_search_link"> <a href="<?php echo $this->getUrl('catalogsearch/advanced'); ?>"><span><?php echo __('Advance Search Link');?></span></a> </div>
I hope it helps.
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.
200+ Magento 2 Extensions for Enhanced Shopping Experience.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2020
03:39 AM
11-06-2020
03:39 AM
Re: advanced search link in search results page
Thanks! that's it!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2020
07:46 PM
11-08-2020
07:46 PM
Re: advanced search link in search results page
Hello @mb_manager
Your welcome
If the answer was helpful to you, could you please mark it as a solution so that it would be easy for other community members to find it quickly.
Thank you.
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.
200+ Magento 2 Extensions for Enhanced Shopping Experience.