Skip to main content
Share Your Experience: Take the 2024 Developer Survey
6 votes
Accepted

Magento 2 : How To Add Search By Category In Advanced Search?

To add this, you will need to override the following files: vendor/magento/core/module-catalog-search/Block/Advanced/Form.php vendor/magento/core/module-catalog-search/Model/Advanced.php vendor/...
Nitesh Kuyate's user avatar
5 votes

Magento 2 - Incorrect title showing for some pages

Solved it. The problem was that I had a layout using Magento\Customer\Block\Form\Login, like this: <block class="Magento\Customer\Block\Form\Login" name="login.sidebar" template="form/...
Thomas Domingues's user avatar
4 votes

programatically search products in magento 2

Please use the below code, might be useful for you. here i am giving u test script just copy and past in the test script and run the code as shown in the screenshots EX: http://testsite.com/filename....
Nagaraju Kasa's user avatar
4 votes
Accepted

programatically search products in magento 2

If you want to search Product programatically, try below code. I used SKU to get Products. Call this in your template file. #File: app/code/Pulsestorm/RepositoryTutorial/Command/Examples.php ...
Rajkumar .E's user avatar
  • 3,570
4 votes
Accepted

Multi select attribute not indexing CE 2.6.1

I was able to modify these scripts to fix my issue: https://dev98.de/2017/01/19/fixing-issues-after-changing-product-attribute-type-from-varchar-to-text/ First thing I did was change my attributes ...
sharmstr's user avatar
  • 171
3 votes
Accepted

Magento 2 Layered Navigation in Advance Search Result

Override catalogsearch_advanced_index.xml in your theme From vendor/magento/module-catalog-search/view/frontend/layout/catalogsearch_advanced_index.xml To app/design/frontend/Vendor/theme/...
Prince Patel's user avatar
  • 22.7k
3 votes
Accepted

How can I change the search page column layout in Magento 2.1 to one column?

In your theme create the catalogsearch_result_index.xml in following path: app/design/frontend/<Vendor>/<your_theme>/Magento_CatalogSearch/layout/catalogsearch_result_index.xml Add the ...
Oshan's user avatar
  • 1,952
2 votes

Is it possible to use post method in catalog advanced search form?

You need to do two things here. 1. Change Form Method to POST File : app\design\frontend\{package|\{theme}\template\catalogsearch/advanced/form.phtml <form action="<?php echo $this->...
Rajeev K Tomy's user avatar
2 votes

How to get two different search forms in Magento one fulltext and one title search?

Simple solution: Point your "title only" search form to Mage::getUrl('catalogsearch/advanced/result') and change the name of the search input field to name="name" (or name="meta_title or whatever you ...
Fabian Schmengler's user avatar
2 votes
Accepted

How can I move the advanced search into the left sidebar of my homepage?

Use following code in local.xml to move advanced search to left side bar on home page. <?xml version="1.0"?> <layout version="0.1.0"> <cms_index_index> <reference ...
Rohit Kundale's user avatar
2 votes

Any free plugin for magento elastic search

Check this plugin : https://github.com/Smile-SA/elasticsuite The demo is available here: http://demo.magento-elastic-suite.io/
Sejal Shah's user avatar
  • 2,141
2 votes

Checking if an attribute exists within an array of loaded attributes

in_array() does not work on multidimensional arrays. You could write a recursive function to do that for you: function in_array_r($needle, $haystack, $strict = false) { foreach ($haystack as $...
Qaisar Satti's user avatar
  • 32.5k
2 votes
Accepted

Bug change limit from toolbar advance search collection

This is bug in default Magento it is not url encode issue it is javascript issue you can fixed is simply by changing. app/design/frontend/rwd/default/template/catalog/product/list/toolbar.phtml on ...
Qaisar Satti's user avatar
  • 32.5k
2 votes

How to show manufacturer attributes for products with link to advanced search result?

You were almost there. This combination of your codes should to the trick: <?php if( $_product->getAttributeText('manufacturer') ): ?> <p class="manufacturer"> Brand:<br/...
Fabian Schmengler's user avatar
2 votes

How to disable Advanced Search?

Since URL rewrite does not work for result page (same for disabling module output), here another more flexible solution: Solution 1: Create an extension to redirect users to configured "CMS No Route ...
sv3n's user avatar
  • 11.7k
2 votes
Accepted

M2.2 - Advanced Search - Search Multiple SKUs?

By default the sku attribute is configured to provide wildcard searches, that means that the query for the value of this field is build in the way sku LIKE '%[FIELD_VALUE]%'. So if you want to use ...
HelgeB's user avatar
  • 4,521
2 votes

How to override a advance search & orders return page in magento 2?

To Advance Search below file Copy and override in your custom theme: vendor/magento/module-catalog-search/view/frontend/templates/advanced/form.phtml Follow this path app/design/frontend/[...
Rakesh Donga's user avatar
  • 5,364
2 votes
Accepted

How to override a advance search & orders return page in magento 2?

To Override advance search Copy vendor/magento/module-catalog-search/view/frontend/templates/advanced/form.phtml to your app/design/frontend/Mytheme/Theme_name/Magento_CatalogSearch/...
Dhaval Solanki's user avatar
2 votes
Accepted

How to add Advanced Search form in Pages on homepage in Magento 2?

You need to change block class for Advance form. It should be: {{block class="Magento\CatalogSearch\Block\Advanced\Form" template="Magento_CatalogSearch::advanced/form.phtml"}} on each phtml, ...
Pawan's user avatar
  • 5,901
2 votes
Accepted

How to change advance search url

You cannot combine these two because both are perform used for different search. /catalogsearch/result/ is used for showing result when you search from input field in header. /catalogsearch/...
Addify's user avatar
  • 769
2 votes

Search by product name only Magento ver. 1.9.2.4

Login to admin panel Go to catalog > attributes > manage attributes > search as product_name at attribute code Open that attribute and select properties Set as Use in advanced search to Yes Set as Use ...
Teja Bhagavan Kollepara's user avatar
1 vote
Accepted

Magento 2 Catalogsearch Page Empty when i search Something

Could be that you have a third party module interfering in your search results or template or similar as you can see there are results when the autosuggestions load, also I don't think the route ...
SantiBM's user avatar
  • 1,361
1 vote

Magento 2 Layered Navigation in Advance Search Result

Create new file catalogsearch_advanced_result.xml at path app/design/frontend/Vendor/theme/Magento_LayeredNavigation/layout/ and add following code in file <page xmlns:xsi="http://www.w3.org/...
Piyush's user avatar
  • 5,904
1 vote

Adding custom search term into Search Result

With the default search there is no way of doing this without code modification. Two ideas: Try another search extension. Magento default isn't good anyway. Set up a category with this name, no ...
CloudySi's user avatar
  • 374
1 vote

How to change advanced search frontend URL in magento2

You can use Magento rewrites to change urls. Go to Admin Panel -> Marketing -> SEO & Search -> URL Rewrites .
Konrad Siamro's user avatar
1 vote
Accepted

How to rename the advanced search link in magento 2

Put the code in following code in following file. app/design/frontend/vendor/mytheme/Magento_Theme/layout/default.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Amit Maurya's user avatar
  • 2,871
1 vote

Multi select attribute not indexing CE 2.6.1

Here is my similar sql solution, which may be a bit more clear and easier to modify for your needs: -- View the attributes to verify what we are changing SELECT * FROM shm2_eav_attribute WHERE ...
Dennis Kopitz's user avatar
1 vote
Accepted

Magento Advanced Search Page in Search Result Page

You can achieve this with below. Update your app\design\frontend\YourPackage\YourTheme\template\catalogsearch\result.phtml <?php if($this->getResultCount()): ?> <?php echo $this->...
Jaimin Sutariya's user avatar
1 vote

How to find what query executes while doing reindexing?

In app\etc\local.xml where are database settings add <profiler>true</profiler> tag so it should look like that <default_setup> <connection> <profiler>true<...
rafal-kos's user avatar
  • 676
1 vote

Remove form from results page

The advanced search redirects to /catalogsearch/advanced if no search term is specified. This is the page that contains the advanced search form. But as you don't need this page, you could either ...
Fabian Schmengler's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible