For more details see the Product Parts Finder extension page.
In our sample web store, we are selling car parts. There is a wide variety of products and we want our customers to be able to find the part they need faster.
Let's filter the wheels collection to display only the wheel which will fit a particular car.
Let's do this using the extension. Configure the Finder to filter Wheels category to display wheels for a selected car only.
Since we want to filter wheels let's highlight three most important variables for a Finder: car make, car model and wheel diameter.
Once you hit the Add Finder button you will need to specify the number of dropdowns.
Second important setting there is Custom Destination URL. There you set the page to which the Finder block will redirect you after you hit the Find button. This setting can be changed at any time.
Hit Save to proceed.
The easiest way to fill up Finder with products is to utilize a CSV import feature. For this, you will need to compile a CSV file with the data containing all the variations for Make, Model and Diameter and assign these variations to the products in Magento Catalog.
Deciding on CSV format is very simple: count the number of dropdowns you have and add one more for a SKU column. In our case there are three dropdowns, adding one makes it four-column CSV.
This is how a ready-for-import CSV file looks like.
Open the Import tab, drag and drop the CSV and hit Import. After the import is done hit the Save button.
Open the Finder you've just created and navigate to the Get Finder Code tab.
Use the marked XML code in the Wheels' category layout update.
Then open Catalog > Manage Categories, select the Wheels category, navigate to Custom Design tab and look for Custom Layout Update. Insert the code.
Hit Save Category and it's done.
When you open the Wheels category in the store front, you can see the Finder block.
Since no selection is made all products from the category are displayed.
Filtering, you can see only the products which SKUs you have assigned in a CSV file for Audi - A5 - 19″ selection.
Settings are located in: System > Configuration > Amasty Extensions > Product Parts Finder
Display Compatible Options At The Product Page - Enable the feature to display a compatibility tab on a product page. The tab displays all the finder's options, the product is compatible with. The tab is active on the product pages after a search by Finder.
Set the Title of the compatibility tab. The tab is displayed on the product pages.
Dropdown settings. There is no limit to the number of dropdowns in a single Finder instance.
You can import records in finder in two formats: CSV and XLS (XLSX).
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. The same goes for XLS format.
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/media/amfinder/ftp_import/finder_id/
Please note that the finder_id part in the path should be replaced with the ID of the Finder you want to import the file into. After the file upload is done, open the Finder and hit Load Files Uploaded by FTP in the Import tab and the file you've uploaded will appear ready to import.
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 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.
1. To manage compatibility with Smartwave Ajaxcatalog, find and edit a file: app/code/local/Smartwave/Ajaxcatalog/controllers/Catalog/CategoryController.php
2. After a line
$this->generateLayoutXml()->generateLayoutBlocks(); /*Generate new blocks*/
/*compatibility with Amasty Finder*/ $html = $this->getLayout()->createBlock('cms/block') ->setBlockId(Mage::registry('current_category')->getLandingPage()) ->toHtml();
Open the following file:
There you can find commented part of example code:
Simply move the XML comment marked above like this:
This will add finder with ID=1 to a top of a category page. If you want to place here the finder with a different ID simply replace the 1 inside id tag with the ID of your finder. You can check finder IDs on the Parts Finder grid:
Save changes and flush Magento cache. Done!
In the same exact file as before:
Move the comment marking and see the marked part of the code:
This is where we define the place for the Finder block on the page by changing the content.
Since we're using catalog_category_layered we should look for it in the theme files. In case it's RWD, here: /app/design/frontend/rwd/default/layout/catalog.xml
Here are our reference options: It looks like we can put the Finder block in the product list or in the left sidebar. The Sidebar is a good option, let's try it.
To add the Finder block to a sidebar we need to change the reference value to left_first. Also, we want to place the Finder before the navigation block. Since from the look of catalog.xml we know that navigation's block name is catalog.leftnav all we need to do is to mark that we want the Finder block to be placed before catalog.leftnav.
Here's how the code will look like with the changes applied above: