For more details see the Product Parts Finder for Magento 2 extension page.
Open the following file:
This will add the finder with ID=1 to a sidebar on all category pages. If you want to put there the finder with a different ID simply replace the 1 inside argument name=“id” tag with the ID of your finder. You can check finder IDs on the Parts Finder grid:
In the same exact file as before:
This guide covers basic Finder settings. After taking the steps described we will get a fully-functioning Finder block on our store.
This is what the Product Finder extension does best.
In our example store all wheels are in the same category. But if in your store you have subcategories for different wheel manufacturers you will need to set and Anchor to a parent category so all your wheels will be available in one place.
Please be careful with the Custom Destination URL setting. Here you set the page to which the Finder block will redirect you after hitting the Find button to show you the results. Since I want to filter only Wheels category, I've set “wheels.html” there to redirect me to example.com/wheels.html where my Wheels category is.
Hit Save and Continue Edit to proceed.
You can create records in the Finder manually, but it may not be the best solution when you want to import hundreds or thousands of records. In this case, CSV import will perfectly work. Below you can see an example CSV file with the data containing all the variations for Make, Model and Diameter and bind these variations to products in my Magento Catalog.
Please pay attention to the number of columns in your CSV file. There should be a column for each dropdown plus one extra for a SKU. We have three dropdowns in our Finder so there should be four columns in CSV file.
Open the Import tab, drag and drop the CSV file and hit Import. After the import is done hit the Save and Continue Edit button.
And that is all, now we have functioning Finder filter in our category.
You can import records to the finder with CSV files.
Deciding on CSV format is very simple: count the number of dropdowns you have and add one more for the SKU column. For example, if you have three dropdowns, adding one makes it four-column CSV.
There are two ways to import files into the Finder: manually from the Finder page or by uploading the file to the specific folder in the Magento directory. The latter is useful when you want to import a large file which your web-server might not allow to upload due to size restrictions.
To import files from the Folder in Magento you should put the file to the following directory: /magento_folder/pub/media/amasty/finder/ftp_import/finder_id/
If certain selection can output multiple different SKUs in the result, you can bundle these SKUs and import the whole thing in one line. Here's the example: Make1,Model1,Year1,“sku1,sku2,sku3,sku4,sku5,sku6” Make1,Model2,Year2,“sku3,sku4,sku5,sku6,sku7,sku8”
With these two lines Finder will generate twelve unique records, one for each Make-Model-Year-SKU combination.
By enabling Range in the dropdown settings you'll be able to automatically generate records for numeric data, like a list of years.
Now, when you import a CSV or XLS file you can simply define a range like “2001-2017” and it will generate 17 records automatically when the file is imported.
Here's how the CSV example may look like: Make1,Model1,“2001-2017”,SKU1
The example above will create 17 records in the Finder database which will differ only by the Year value.