Advanced Search

Presentation

Advanced Search is a module that allows you to create the fastest layered navigation menu on the market, with criteria groups for each category, attribute and feature level, etc.
Entire catalog or current section search, by step or by filter, there are many customisation options.

General Points and Operating Principles

Layered navigation is a tool that allows site visitors to be shown products that match the criteria they define, such as color, price or features.
This system saves them time as they search and choose the products they want to see.

Advanced Search is the most powerful layered navigation module available for PrestaShop and provides a solution for two major issues for e-sellers i.e. increasing the transformation rate and increasing traffic.

It allows you to easily and rapidly add custom filters on the pages you choose and thus provide your visitors with a specific overview of the products in your catalog.
Your customers will then be able to navigate around your shop quickly and will only see available products that best match their needs, thus maximising your transformation rate.

In addition to providing a solution for your customers Advanced Search allows you to generate predefined results pages for search engines.
These pages have a URL that has been rewritten according to the criteria you define, a H1 tag, a single description and meta tags, all whilst maintaining your internal meshing.
Using this module in this way on your site, will improve your search engine ranking, which should, in turn, increase traffic.

The module therefore has a dual purpose – to allow your customers to find a product at speed and to improve your natural referencing in search engines.

Installation

To install Advanced Search, see our tutorial on how to install a module here

Activate Maintenance Mode

This module has a maintenance mode. You can find the tutorial here

Configuration

Add New Search Engine

Add a new search engine
This allows you to access a pane where you can create a search engine.

Type of Search

Type-of-search
This allows you to set the type of search that you want to create.
You have a choice of 3 options:

– Filter: with this type of search, you can combine several criteria dynamically in order to refine your results.
– Full Catalog:
– Step-by-Step: your customers need to select one criteria per step for this type of search.

Display

Public Title

Public-title
This allows you to set the title for the search instance. This title will be displayed above the criteria selection pane.

Internal Title

Internal-title
This allows you to set a private name for your tracker. This name will only be used to identify your search instances in your back office.

Position

Position
This allows you to set the position where the search instance will be shown.
You can choose from among the main PrestaShop hooks.
You can also choose to place the search instance in a custom position (advanced user), by inserting the code provided in the desired location in your template.

CSS Selector of the Center Column

CSS-selector-of-the-center-column
This allows you to set the CSS selector which allows Advanced Search to be placed in the central column.

Prioritize this Search

Prioritize-this-search
This allows you to prioritise a search instance. The module will therefore hide the search instances that do not have this option set to yes on a page that has several search boxes.

Description to be Displayed Above the Results

Description-to-be-displayed-above-the-results
This allows you to enter a description for the search instance. This shall be displayed above your search results.

Behavior

General Settings

Where to search?

Where-to-search
This allows you to activate or deactivate context search. If you activate context search, the products available on the page the visitor is currently viewing will be included in the search. If you deactivate context search, all the products in the catalog will be included in the search.

Set Starting Category for the Search

Starting-category-for-the-search
This allows you to set the level at which the search must be carried out.
You can enter a fixed category or use the category that your visitor is viewing as the search base.

Search through all Sub-Categories

Search-through-all-sub-categories
This allows the search to go through the sub-categories for the category used, in order to include the products they contain in the search results.

Keep Descriptions on Category Pages

Keep-description-on-category-pages
This allows you to show or hide the category descriptions on the category pages during a search.

Only Search Products that are Available for Sale

Only-search-products-that-are-in-stock
This allows you to only search products that are in stock.

Results Settings

Match Cover Image to Combinations Found

Match-cover-image-to-combinations-found
This allows the image for the combination obtained by the search to be automatically selected and displayed.

Pre-Select Combination Found on the Product Sheet (anchor)

Preselect-combination-found-on-the-product-page-(anchor)
This allows the system to pre-select the combination found by the search when the user lands on the product sheet.

Number of Products per Page

Number-of-products-per-page
This allows you to set the maximum number of products to be displayed per page of results.

Sort Products By

Sort-products-by
This allows you to set the sort criterion for the results. You can choose to sort by name, price, position of the products in their respective categories, manufacturer, quantity currently in stock, date added or date modified.

We recommend that you sort by date added and date modified for large catalogs.

Order

Order
This allows sort the search results in ascending or descending order.

Search Block Settings

Display number of products found on search block

Display-number-of-products-found-on-search-block
This allows you to show the number of results found.

Display product count per criteria

Display-product-count-per-criteria
This allows you to show the number of product matches found next to each Criterion.

Display a link to reset selection

Display-a-link-to-reset-selection
This allows you to show a button that allows your visitors to reset all the search criteria.

Hide Empty Criteria Groups

Hide-empty-criteria-groups
This allows you to hide criteria groups that do not comprise any items for the current selection.

Hide Implicit Criteria Groups

Hide-implicit-criteria-groups
This allows you to hide criteria groups that do not have any effect on the results.

Display empty criteria

Display-empty-criteria
This allows you to choose to show criteria that do not lead to any products.

Out-Of Limits Criteria Display Method (defined for each group)

Out-of-limits-criteria-display-method
This selector allows you to choose the method the visitor may use to display the criteria that exceeds the size of the container block for the group.

Search Behaviour

Search Submission Method

Search-submission-method
This allows you to set the post method for the search. There are two different post modes:
– Instant search (modification): this mode launches a search each time a criterion is modified.
– Search on submit (button): this mode allows you to select your criteria freely. The search will not be launched until you click Search.

Enable auto scrolling effect

Enable-auto-scrolling-effect
This allows you to activate automatic scrolling for the results when the search is complete.

Display a reminder of the selected criterions

Display-a-reminder-of-the-selected-criterions
This allows you to display the criteria selected for the search displayed.

Management Interface

Edit

Edit
This allows you to edit the current search button. The form is identical to that for creation

Visibility

Visibility
The following options allow you to set the pages on which the search engine must be displayed. Leave these set to no to show your search engine on all the pages on your shop.

Restrict Search to Categories

Restrict-search-to-categories
This allows you to restrict the display of this search engine to specific Category pages.

Restrict Search to Products

Restrict-search-to-products
This allows you to restrict the display of this search engine to specific Product pages.

Restrict search to products in these categories

Restrict-search-to-categories-of-products
This allows you to restrict the display of this search engine to specific products in these categories.

Restrict Search to Manufacturers

Restrict-search-to-manufacturers
This allows you to restrict the display of this search to specific manufacturer pages.

Restrict Search to Suppliers

Restrict-search-to-suppliers
This allows you to restrict the display of this search to specific supplier pages.

Restrict Search to CMS pages

Restrict-search-to-CMS-pages
This allows you to restrict the search to be displayed on CMS pages only

Restrict Search to Special Pages

Restrict-search-to-special-pages
This allows you to restrict the search to be displayed on special pages, such as the cart or the forgot password pages.

Status

Status
This allows you to activate or deactivate the current search engine.

Delete

Delete
This allows you to delete the current search engine.

Duplicate

Duplicate
This allows you to create a copy of the current search engine.

Re-Index

Duplicate
This allows you to launch re-indexing.
Re-indexing is the process during which Advanced Search updates all the criteria groups for the search engine, along with their values.
e.g. if you edit the values for an attribute, you will have to re-index the module engine so that it takes the modifications into account.

Available Criteria Groups

Available-criteria-groups
This column contains all the criteria groups that are available in your shop and can be added to your search engine.
They are sorted by type: attributes, features and associations, etc.

Just click a criteria group to add it to your search engine.

Active Criteria Groups

active-criteria-groups
This column contains the criteria groups that are currently used for your search engine. This is where you can edit or delete them.

The order of the criteria groups in this list defines the order in which they are displayed on your shop.
Just click and drag a group to change the order.

Editing a Criteria Group

Settings for the Criteria Group

Product Associations

Public Name

Public-name
This allows you to set the name to be used for this criteria group.
You can set one name for each language that has been installed on your shop.

This name will be displayed above the group criteria

Display Method

Display-method
This allows you to set the type of selector to be used for this criteria group.

Icon

Icon
This allows you to set an icon for your criteria group.
You can set one icon for each language that has been installed on your shop.

This icon will be displayed to the left of the group title

Show only subcategories related to the previously selected criterions

Show-only-subcategories-related-to-the-previously-selected-criterions
This allows you to take the previous category or categories selected into account when displaying the next category level (only available on Categories Level X criterion groups)

e.g.
You have the following tree structure: A level 1 category, title 1 and content 3 sub-categories A, B and C and a level 2 category, title 2, also containing 3 sub-categories, D, E and F.
You have created two criteria groups: one for level 1 categories that you have configured as needed and a second one for level 2 categories, for which you have activated the Show Sub-Categories Directly Associated with the Criteria Previously Selected option.

Then go to your shop and select category 1 for the first criteria and only criteria A, B and C will be available for group 2.

Display input text in order to filter values

Display-input-text-in-order-to-filter-values
This allows you to provide a search box in your drop-down menu so as to allow the values it contains to be filtered.

Allow Multiple Choices

Allow-multiple-choice
This allows you to authorise your customers to select multiple values for this criteria group.

Maximum Number of Criteria to display (0 = unlimited)

Maximum-number-of-criteria-to-display
This allows you to set the maximum number of criteria to be shown for this criteria group. Enter 0 to show as many criteria as there are values for the group.

Starting level (all category levels only)

Starting-level
This allows you to set the start point for the tree structure for the categories to be displayed.

Product Attributes

Public Name

Public-name
This allows you to set the name to be used for this criteria group.
You can set one name for each language that has been installed on your shop.

This name will be displayed above the group criteria

Display Method

Display-method
This allows you to set the type of selector to be used for this criteria group.

Icon

Icon
This allows you to set an icon for your criteria group.
You can set one icon for each language that has been installed on your shop.

This icon will be displayed to the left of the group title

Allow Multiple Choices

Allow-multiple-choice
This allows you to authorise your customers to select multiple values for this criteria group.

Label for “All” choice (drop-down menu)

Label-for-all
This allows you to set the text for the All option, i.e. the default option in a drop-down menu.

Maximum Number of Criteria to display (0 = unlimited)

Maximum-number-of-criteria-to-display
This allows you to set the maximum number of criteria to be shown for this criteria group. Enter 0 to show as many criteria as there are values for the group.

Display as Range (drop-down menu, link and checkbox only)

Display-as-range
This allows you to display the attributes as ranges.

Activate this option to gain access to Range and Unit options. The first one allows you to generate comma-separated numerical tiers for your choices.
The Unit option allows you to set the unit of measurement for your criteria. This unit will be automatically added to the end of each value.

Example :

Example 1
Back Office Configuration Example
Example 2
The tiers and the units shall be automatically generated

Display input text in order to filter values (drop-down menu only)

Display-input-text-in-order-to-filter-values
This allows you to provide a search box in your drop-down menu so as to allow the values it contains to be filtered.

Step (numerical interval and cursor only)

Step
This allows you to set the step for your cursor or numerical interval. This value will be applied for each deviation between two group values.

The step must be consistent with the values in the group. Too great a step for the criteria may provoke display inconsistencies.

Unit (numerical interval and cursor only)

Unit
This allows you to set the measurement unit for your criterion. This value will be automatically added to the end of each value.

Product Features

Public Name

Public-name
This allows you to set the name to be used for this criteria group.
You can set one name for each language that has been installed on your shop.

This name will be displayed above the group criteria

Display Method

Display-method
This allows you to set the type of selector to be used for this criteria group.

Icon

Icon
This allows you to set an icon for your criteria group.
You can set one icon for each language that has been installed on your shop.

This icon will be displayed to the left of the group title

Label for “All” choice (drop-down menu only)

Label-for-all
This allows you to set the text for the All option, i.e. the default option in a drop-down menu.

Display as Range (drop-down menu, link and checkbox only)

Display-as-range
This allows you to display the attributes as ranges.

Activate this option to gain access to the Range and Unit options. The first one allows you to generate comma-separated numerical tiers for your choices.
The Unit option allows you to set the unit of measurement for your criteria. This unit will be automatically added to the end of each value.

Example :

Capture d’écran 2016-08-25 à 17.41.42
Back Office Configuration Example

Capture d’écran 2016-08-25 à 17.40.59
The tiers and the units shall be automatically generated

Display input text in order to filter values (drop-down menu only)

Display-input-text-in-order-to-filter-values
This allows you to provide a search box in your drop-down menu so as to allow the values it contains to be filtered.

Allow Multiple Choices

Allow-multiple-choice
This allows you to authorise your customers to select multiple values for this criteria group.

Maximum Number of Criteria to display (0 = unlimited)

Maximum-number-of-criteria-to-display
This allows you to set the maximum number of criteria to be shown for this criteria group. Enter 0 to show as many criteria as there are values for the group.

Step (numerical interval and cursor only)

Step
This allows you to set the step for your cursor or numerical interval. This value will be applied for each deviation between two group values.

The step must be consistent with the values in the group. Too great a step for the criteria may provoke display inconsistencies.

Unit (numerical interval and cursor only)

Unit
This allows you to set the measurement unit for your criterion. This value will be automatically added to the end of each value.

Product Properties

Public Name

Public-name
This allows you to set the name to be used for this criteria group.
You can set one name for each language that has been installed on your shop.

This name will be displayed above the group criteria

Display Method

Display-method
This allows you to set the type of selector to be used for this criteria group.

Icon

Icon
This allows you to set an icon for your criteria group.
You can set one icon for each language that has been installed on your shop.

This icon will be displayed to the left of the group title

Label for “All” choice (drop-down menu only)

Label-for-all
This allows you to set the text for the All option, i.e. the default option in a drop-down menu.

Allow Multiple Choices

Allow-multiple-choice
This allows you to authorise your customers to select multiple values for this criteria group.

Maximum Number of Criteria to display (0 = unlimited)

Maximum-number-of-criteria-to-display
This allows you to set the maximum number of criteria to be shown for this criteria group. Enter 0 to show as many criteria as there are values for the group.

Display input text in order to filter values (drop-down menu only)

Display-input-text-in-order-to-filter-values
This allows you to provide a search box in your drop-down menu so as to allow the values it contains to be filtered.

Display as Range

Display-as-range
This allows you to display the attributes as ranges.

Activate this option to gain access to the Range and Unit options. The first one allows you to generate comma-separated numerical tiers for your choices.
The Unit option allows you to set the unit of measurement for your criteria. This unit will be automatically added to the end of each value.

Example :

Example 1
Back Office Configuration Example

Example 2
The tiers and the units shall be automatically generated

Step (numerical interval and cursor only)

Step
This allows you to set the step for your cursor or numerical interval. This value will be applied for each deviation between two group values.

The step must be consistent with the values in the group. Too great a step for the criteria may provoke display inconsistencies.

Unit (cursor and numeric interval only)

Unit
This allows you to set the measurement unit for your criterion. This value will be automatically added to the end of each value.

Product Package

Public Name

Display-method
This allows you to set the name to be used for this criteria group.
You can set one name for each language that has been installed on your shop.

This name will be displayed above the group criteria

Display Method

methode-affichage
This allows you to set the type of selector to be used for this criteria group.

Icon

Icon
This allows you to set an icon for your criteria group.
You can set one icon for each language that has been installed on your shop.

This icon will be displayed to the left of the group title

Label for “All” choice (drop-down menu only)

Label-for-all
This allows you to set the text for the All option, i.e. the default option in a drop-down menu.

Display as Range (drop-down menu, link and checkbox only)

Display-as-range
This allows you to display the attributes as ranges.

Activate this option to gain access to the Range and Unit options. The first one allows you to generate comma-separated numerical tiers for your choices.
The Unit option allows you to set the unit of measurement for your criteria. This unit will be automatically added to the end of each value.

Example :

Example 1
Back Office Configuration Example

Example 2
The tiers and the units shall be automatically generated

Display input text in order to filter values (drop-down menu only)

Display-input-text-in-order-to-filter-values
This allows you to provide a search box in your drop-down menu so as to allow the values it contains to be filtered.

Allow Multiple Choices

Allow-multiple-choice
This allows you to authorise your customers to select multiple values for this criteria group.

Maximum Number of Criteria to display (0 = unlimited)

Maximum-number-of-criteria-to-display
This allows you to set the maximum number of criteria to be shown for this criteria group. Enter 0 to show as many criteria as there are values for the group.

Step (numerical interval and cursor only)

Step
This allows you to set the step for your cursor or numerical interval. This value will be applied for each deviation between two group values.

The step must be consistent with the values in the group. Too great a step for the criteria may provoke display inconsistencies.

Unit (numerical interval and cursor only)

Unit
This allows you to set the measurement unit for your criterion. This value will be automatically added to the end of each value.

Create New Custom Criterion

Criterion label

Criterion-label
This allows you to set the title for your new custom criterion.

Color (color criteria group only)

Color
This allows you to set a color for your new custom criteria.

Sort Criteria

Sort Order

sort
This allows you to set the order for the criteria displayed in a criteria group.
There are 4 possible sort orders:

– Custom Position: this allows you to manually set the sort order by dragging and dropping the criteria to the desired position.

– Alphabetical: this allows you to set an alphabetical sort order.

The order defined here shall be that used in the front office

Order by

order
This allows you to choose the order for the criteria.
You can choose ascending or descending.

The sort direction for a custom position will invert the current order

Managing Custom Criteria

Advanced Search allows you to group several criteria under a single custom criterion.
Let’s take a group color criterion, for example. The shop has several variants for each color, but you do not want to display all of them. We are therefore going to create a custom criterion for each of the colors to be represented, then allocate all the variants to this new criterion.

To do this, go to the edit window for a Color criteria group, then create a custom criterion.

create-a-new-custom-criterion

Enter its name and enter a color for the new criterion, then save it.
Now go to the list of criteria that now contains a new column:Link to Custom Criterion

criterion-table

All you need to do now is link each color variant with the corresponding custom criterion.
When a customer selects Blue as a criterion, Advanced Search will then show all the results for blue variants that have been assigned to the criteria.

Predefined results page (SEO)

Add/Edit a New Results Page

add-a-new-results-page

This page allows you to create or edit a pre-defined results page using the criteria groups for your search engine.
To do this, just click and drag the criteria into the zone provided to add it to the generation.

You can combine criteria from different groups

Once you have selected the criteria, you can fill out the information fields (metadata) or decide to generate these automatically by clicking Generate title, metadata and URLs:

– Meta title: this allows you to set the title for your results page. This title will, for example, appear in the title bar for a browser tab.

– Meta title: this allows you to set the description for your results page for the spiders. Your customers will not see this description.

– Meta keywords: this allows you to set the keywords from your results page for the spiders. These keywords will not be visible on your shop.

– Title (H1): this allows you to set the search title, which will be displayed above the results.

– Simplified URL: this allows you to set a simplified URL for your results page.

Finally, you can link the page being created with an existing results page by using the table to search the existing pages and clicking the plus sign for the page to be added.

Massive add of results pages

Massive-add-of-results-pages
This page allows you to create multiple results pages by generating all the options for the selected criteria.
A tab pane containing all the possible values is given for each criteria group.
Just tick a criteria to add it to the list of URLs to be generated.

Finally, you can also automatically create links between the results pages generated by setting Automatically Add Crosslinks between the pages generated to Yes.

Remove Empty Results Pages

Remove-empty-results-pages
This allows you to delete empty results pages.

This option should be used if you delete a criterion, for example.

Regenerate SEO meta data

Regenerate-SEO-meta-data
This allows you to automatically regenerate the SEO information (meta) for the results pages.
There are 5 possible data types that can be regenerated:

– Meta Title: the title of your results page. This title will appear in the browser tab title bar.
– Meta Description: this is the description for your results page. Your customers will not see this description.
– Meta Keywords: these are the keywords from your results page for the spiders. These keywords will not be visible on your shop.
– Title (H1): this is the search title, which is displayed above the results.
– Simplified URLs: these are the shortened URLs for the results pages.

List all URLs

List-all-URLs
This allows you to retrieve a list of all the URLs generated by the module for the current search engine.
This list comprises two blocks:

– The first one contains a list of HTML links, that allows you to use them in templates, for example.
– The second contains the same list of links but in CSV format, so that you can store them in an external file.

General Settings

Enable Cache

Enable-cache
This allows you to activate the Advanced Search cache, which is independent to the cache for your shop.

We recommend that you activate the cache as of the production launch of your shop

Activate automatic indexing when adding/editing/deleting items (may slow down your back-office)

Activate-the-active:inactive-status-sync-of-items-with-your-criteria
This allows you to automatically launch indexing when you add, edit or delete an item from your search engines.

Re-indexing is only carried out on the search engine concerned by the modification

Activate the active/inactive status sync of items with your criteria

Automatic-indexing
This allows you to retrieve the status, active or inactive, of each of the criteria for your shop on re-indexing. Link to Custom Criterion

Display Products from Sub-Categories

Display-products-from-subcategories
This allows you to change the display of the Category pages on your shop. Once activated, it allows you to display the products associated with all the sub-categories for the current category.

This display for products in child categories is provided outside of context search. Once the search has been launched, the results settings in the search engine configuration will be used as a template (search all sub-category levels)

Advanced Styles (CSS)

Advanced-styles
This allows you to add the CSS code so that you can customize Advanced Search (advanced user).

Scheduled Task

This allows you to retrieve the URLs that launch a re-indexing job for one or all the search engines.
These links are to be used when setting up CRONjobs.

Maintenance

Clear Search Engines Cache

Clear-search-engines-cache
This allows you to clear the cache for all your search engines.

Re-index all search engines (CRON alternative)

Reindex-all-search-engines
This allows you to start immediate re-indexing of all the search engines without needing to set up a CRONjob.

Delete All Search Engines

Delete-all-search-engines
This allows you to delete all your search engines.