Learn how the Layered Navigation Premium for Magento 2 extension works.
The Magento 2 Layered Navigation Premium is a feature-rich module that overs all needs of web-store navigation. Grow purchases by letting users browse the products they need in a few clicks. Maximize the usability of the web-store with one easy extension.
The Premium Layered Navigation module is divided into 3 sub-modules. In the user guide below, the most essential settings are described. To find the extended guide on sub-modules configuration, please click on one of the links below:
To get access to Magento 2 layered navigation settings, please go to Stores → Configuration → Improved Layered Navigation
If you need different types of cache for mobile and desktop devices, please, insert this code (line 2-8) into the section vcl_hash in the varnish configuration file (vcl).
sub vcl_hash { if (req.http.X-UA-Device ~ "^mobile" || req.http.X-UA-device ~ "^tablet" ) { hash_data("mobile"); } else { hash_data("desktop"); } }
Enable AJAX - Enable AJAX to avoid page reloads.
Add Vertical Scrolling to Filter Block After - Specify maximal filter size (in pixels) that will be displayed without vertical scrolling. In case a filter is higher than the indicated size, the scrolling will appear.
Submit filters on desktop (on mobile) - Select Instantly mode to apply filters one by one, on the fly. With the By Button Click mode, customers will be able to apply multiple filters in bulk after clicking an Apply button.
Leave the Single-Select Filter Visible after Selection - Disable the setting to hide the filter when the value is selected.
If the setting is set to No, the option with the only one choice will become hidden after the selection:
If you enable the option, it will remain visible:
Number of Unfolded Options in State - Specify the number of unfolded options. To see other options, a customer should click the 'More' button.
Slider Style - Here you can choose the style for a Price Slider. There are 5 options available for now: Default, Improved, Volumetric Gradient, Light, Dark.
Enabled - Set to 'Yes' to enable category filter.
Position - Here you can specify the position for a category filter.
Hit the Category Filter Settings button to adjust other settings of the category filter.
Enabled - Enable In Stock/Out of Stock filter. You can preselect a label, position and the display mode.
Show in the block - Choose where to display the filter:
Tooltip - Specify tooltip text that will be displayed on a mouse hover for the stock filter.
Expand - Allows to expand filter automatically right after a page is loaded. Set 'Expand for desktop only' to keep filter minimized on mobile. Keep 'Auto' to work based on the custom theme functionality.
Display Mode - For now, only Labels mode is available for this filter.
Configure settings for the Rating filter. Choose whether to show it in the left sidebar, in the top menu, or in both positions.
Also, you can specify the Label, Tooltip, and adjust the Expand settings for the filter.
Configure settings for the 'New' filter. Choose whether to show it in the left sidebar, in the top menu or in both positions.
Configure settings for the 'On Sale' filter. Choose whether to show it in the left sidebar, in the top menu or in both positions.
Enable the Tooltip option and upload a tooltip image.
To enable/disable a particular filter please go to Stores → Attributes → Product and select the attribute you need.
Use in Layered Navigation - If you want an attribute to become filter in the navigation, select one of the options:
1. Filterable (with results) - a filter will be displayed only if there are products with such options in a category.
2. Filterable (no results) - a filter will be displayed even if there are no products with such options in a category.
Use in search results Layered Navigation - Enable this feature if you want the options above to be applied to the search results page.
With Magento 2 Layered Navigation extension, you can display each particular filter block either in vertical or horizontal navigation. You can also select both options if needed. To adjust filter position, please go to Stores → Attributes → Product, pick up the needed attribute (filter), proceed to the Improved Layered Navigation tab, and then choose one of the three modes in a Show in the Block field.
See the example of vertical and horizontal navigation blocks on the storefront.
To fine-tune filter display modes please go to Stores → Attributes → Products and choose the necessary attribute, then click on the Improved Layered Navigation tab.
Use ‘Slider’ display mode for price attribute.
Minimum Slider Value - Specify the minimal price (e.g.<10$) to limit the slider.
Maximum Slider Value - Specify the maximal price (e.g.<999$) to limit the slider.
Slider Step - Here you can configure the slider step size for the filter.
You can adjust the price slider style in the extension general settings (Stores → Configuration → Improved Layered Navigation → General).
Use the ‘From-to-widget’ filter for numeric attributes either separately or together with other filter display modes. To use it separately, choose the 'From-to only' display mode.
To use the filter together with other display modes, open the needed attribute (filter), and choose 'Yes' in the Add From-To Widget field.
In this example, the From-To Widget is used together with Price Slider:
To fine-tune filter display settings please go to Stores → Attributes → Products and choose the necessary attribute, then click on the Improved Layered Navigation tab.
Display Mode - Specify how to display filters - as Labels, Dropdowns, Images, Images & Labels, Text Swatches.
Show in the Block - Specify whether to show the filter in vertical or horizontal navigation. It's also possible to show filters in both blocks.
Sort Options By - Specify which way you would like to sort the options: by name or by position.
Show Product Quantities - Set whether to display or not the product quantities with the filter options.
Show Search Box - Set to 'Yes' to show a search box in a filter. It is very convenient for filters with many options.
Show the search box if the number of options more than - Indicate the number of options required to display the search box in a filter.
Number of Unfolded Options - Specify the number of unfolded filter values that will be shown to customers when they click on a specific filter.
Expand - The option allows to expand filter automatically right after a page is loaded. Set 'Expand for desktop only' to keep filter minimized on mobile. Keep 'Auto' to work based on the custom theme functionality.
Tooltip - Specify the tooltip text that will be displayed for a specific filter on mouse hover. You can set different tooltips text for particular store views.
If you want to display only particular options in the filters, you should make them Featured.
Visible in categories - Choose for which categories the filter will be available.
Show only when one of the attributes below is selected - choose filter attributes that will trigger the display of a dependent filter. You can select as many attributes as you need.
Show only when one of the options below is selected - choose the options that will trigger the display of the dependent filter.
Show icon on the product page - upload a special image that will be displayed on the product pages which meet filter requirements. This option is especially useful for a Brand filter to show a brand logo on the corresponding product pages.
Allow Multiselect - Enable the option to let customers choose several values of the filter at a time.
Multiple Values Logic - There two options available:
To configure the option please go to Stores → Layered Navigation → Manage Group Attribute Options → click Add New Group button.
Enable the All Products page, containing all store items and layered navigation filters. You can also specify an appealing URL for the page, e.g. all-products.html.
Brand Attribute - It is possible to setup nice short URLs for pages of a brand attribute (or any other one you prefer), e.g.:
URL Key - Specify the key that will be added to the URL before the brand name. E.g. your-site/brand/brand-name.html
Choose CMS page - select a CMS page where the All Brands List will be shown.
Add Brands Link to Top Menu- choose whether to display a Brands link leading to the All Brand Page on the top menu bar. To configure the link position, select one of two modes:
Show Brands List Popup - display brands list and filter them by a character right in the top menu Brands dropdown.
Show Brand Logo - set to yes to display brands logo in brands list popup in the top menu.
Adjust Image Max Width and Image Max Height.
Enable Filter by Character - set to 'Yes' to enable filtering by the first character.
Show Characters without Brands - set to 'Yes' to allow displaying characters without brands.
Show Products Quantity - choose 'Yes' to show the number of products next to the brand name.
Show Brands without Products - set to 'Yes' to allow displaying brands without products.
Add Brands to Account Top Links - Display a Brands link in a customer account.
Brands Item Label - Specify a name, which will be displayed in a menu bar and account top links.
Display Tooltip - Multi-select the directories, where you would like to display a tooltip with a brand info. Possible variants to display:
Tooltip Content - automate the tooltip creation and update. Enter the variables that should be used for a tooltip. Possible variables: {title}, {small_image}, {image}, {description}, {short_description}.
Enable - Display a block of products of a current product's brand. A block will be displayed at the bottom of a current product page.
Title - Specify a title of a block, using a Brand variable.
Max Product Count - Specify the number of random products to display in a block.
Display Brand Logo on Product Page - Enable a brand logo display on the products pages.
Display Short Description on Product Page - Enable a label short description on the products pages.
Brand Logo Width & Height, px - Specify the size of a brand in pixels.
Display Brand Logo on Product Listing - set to Yes to show brand logos on category pages.
Brand Logo Width and Height - adjust logo resolutions. Specify the value in pixels (e.g. 10) or percent (e.g. 10%). Leave empty to use default image size.
To add new brands and to manage brand attribute settings please go to Stores → Products → Attributes → Product → Brand.
Catalog Input type for store owner - select an input type for the catalog. Choose on of 3 available variants:
Add brand names for different store views, upload brand logos and specify a brand that will be preselected by default.
Click on the Settings icon beside a brand name to detailed brand information, add image and metadata.
Slider Options - Here you can enable the display in a brand slider and specify the brand Position in a slider. Also, you can make the option Featured if necessary.
URL alias - Specify a custom URL alias if necessary that will be used in the URL of the filter results page.
Meta Data - In this tab, you can specify meta title, description and keywords for each particular brand.
Specify content for the brand page. Add a title, description, image, and a CMS block using WYSIWYG editor.
To add an All Brands page Content → Elements → Pages. Here you can Add a page with a list of all brands in alphabetical order.
Please click on the Add New Page button to create a page with all brands.
Create All Brands Page - To create a page you need to:
Adjust widgets settings according to your needs.
To manage brands, please navigate to Content → Amasty Layered Navigation → Brand Management.
In this section, you can conveniently manage all the brands from the grid. For each brand, you can add custom descriptions and logos, adjust position in a slider, insert various CMS blocks and banners, add metadata, and etc.
Access any brand to make changes. The way of configuration for each brand is the same as it was described in the brand attribute settings section.
The additional functionality allows admins to customize product sorting on brand pages.
To manage products order on a brand page, go to Content → Layered Navigation → Brand Management.
Open the necessary brand page and scroll to the Products tab.
Here you can:
First, set the necessary sort order, according to which all products will be displayed.
Sort Order - select from the dropdown the preferable way of the automatic ordering of the product listing.
Available options:
Search Products - find products within one current brand product listing by SKU or name.
In the Visible Items field the number of all the products that fall under the specified conditions is displayed.
Drag-and-drop brand products according to your current marketing needs.
Move to Top - hit this button to send a particular item to the first position in the list.
Once you drag a particular product, the Manual mode is set automatically and it is “pinned” to a particular location. The feature helps to fixate a product in the same position even after the automatic sorting is activated too.
Moreover, the number of products per page in the admin panel equals the number of products customers see on the frontend. Thus, you will see how the products will be displayed to customers on each page.
With the move products through the pages feature it is possible to adjust the of products per each page by moving particular products to another page. As the page number is changed, the product becomes last on this page.
As the result, we set the follwing products order:
And on the frontend it will be displayed in the following way:
If you have URLs working based on 'Long with URL key' setting in Magento 1, then, please, configure the following options to migrate to Magento 2 and keep the existing URLs:
Include Attribute Name = Yes
Filter Key = shopby
See more information on this options below.
Enable - Set the option to 'yes' to optimize store URLs for search engines. The URLs will become short and clear.
SEO-friendly URLs for Attributes (Default Value) - with this setting you can generate SEO-friendly URLs for attributes in bulk. Go to Stores - Attributes - Product - {attribute_name} - Improved Layered Navigation - SEO - Generate SEO URL setting to apply per-attribute fine-tuning.
Include Attribute Name - Select 'Yes' to add the attribute name to the URL scheme, e.g. black → color_black.
Filter Key - The option allows to add a filter key to the URL scheme, e.g. example.com/black-xl-activity → example.com/shopby/black-xl-activity.
Add Suffix to the Brand Pages and Filtered All-products Pages - Set to Yes to add a particular SEO suffix to brand pages.
Replace Special Characters With - Specify how to replace special characters.
Separate Attribute Options With - Select the URL separator for the selected attribute options.
You can use the dash symbol in the Replace Special Characters With and Separate Attribute Options With fields simultaneously. But this method has a significant drawback. Let's compare the methods of using the same and different separators:
1. The same separator.
When building SEO URLs, the system may mistakenly regard one option as another. As a consequence, the results will be irrelevant.
E.g.: 3 different attributes have different options: “red”, “cotton” and “new”. This is how they will be displayed together in the link: “red-cotton-new” (when you apply a filter containing these 3 options). And there exists the 4-th attribute: its option displays on the frontend as “red+cotton=new”. According to the setting, all these symbols will be replaced to the dash separator. As a result: the system may take the filter of three options as a filter of one option (we'll receive 2 identical filters: “red-cotton-new”).
2. Different separators.
The situation described in the previous paragraph is impossible. When you replace special characters with the “_” symbol and separate attribute options with the dash symbol, you'll get 2 different filters: “red-cotton-new” and “red_cotton_new”. In addition, this method provides higher productivity with a large amount of data and filters.
Allow the module to modify robots meta tags - Enable robots tag control to let the module manage indexation according to SEO settings for each attribute. If you disable the option, search engines will index all the store content.
Noindex when Multiple Attribute Filters Applied - Enable this option to set the robots to the noindex values for multiple filters.
Automatically Add rel=“nofollow” to Filter Links when Required - Enable this option to automatically add rel=“nofollow” to the filter links.
Noindex for paginated pages - Set to Yes to set the robots to noindex for paginated pages.
You can set structure of canonical URLs for ‘key’-related (‘Canonical URL’ setting) and category (‘Category Canonical URL’ setting) pages:
1. If you choose a “Keep current URL” option for category page, the canonical URL will have all information and will look like:
http://www.your_store.com/category/URL_Key.html?all_get_parameters_displayed_in_state
For “all product” page it will look like on the example below:
http://www.your_store.com/URL_Key.html?all_get_parameters_displayed_in_state
Please keep in mind, that all toolbar parameters (list mode, order, dir, limit), except pagination, won’t be added to canonical URL.
You can customize the All Products Page URL in Stores→Configuration→Improved Layered Navigation→All Products.
2. If you select the “First attribute value” for category page, the canonical URL will look like this:
http://www.your_store.com/category/URL_Key.html?first_attribute_displayed_in_state
For “all product” it will be generated like this:
http://www.your_store.com/URL_Key.html?first_attribute_displayed_in_state
Please, note that attribute's position in URL depends on specified attribute priority.
3. With the “Current URL without get parameters” for both “all product” pages and categories, canonical URL will have SEO-friendly attributes and a filter key:
http://www.your_store.com/category/URL_Key/seo_friendly_attribute_displayed_in_state.html
4. If you choose the “Without filters” option for category page, canonical URL will miss all filters and toolbar attributes (except pagination). As an example:
http://www.your_store.com/category/URL_Key.html?p=x
5. With “Brand Filter only” option for category page, the canonical URL will have brand attribute value:
http://www.your_store.com/category/URL_Key.html?brand_attribute_displayed_in_state
6. If you select the URL Key Only For “all product” page, the canonical URL will look like specified in the example below:
http://www.your_store.com/URL_Key.html
Use Prev/Next Tags for Improved Navigation Pages - Enable this option to help Google properly index your paginated content.
Add Page Number to Meta Title - Enable the option to add page numbers to meta titles, for example, 'Gear | Page 5'. This will fasten the work of search crawlers and the index building process.
Add Page Number to Meta Description - Set the option to Yes to add page numbers to meta descriptions. For instance, 'Gear Description | Page 3'.
To create a category tree please go to Stores → Product and select the ‘Categories’ attribute.
In the Attribute, Information menu open the Improved Layered Navigation tab and adjust the main Display Properties: position un the block, product quantities and search box display, number of unfolded options, and etc.
Render All Categories Tree - Specify to what extend the tree should be expanded.
Category Tree Depth - Specify the maximal level number for a category tree.
Render Categories Level - Indicate the level from which categories will be shown. There are 3 levels available:
Subcategories View - For the Labels display type you can specify the subcategories view mode: Folding/Fly-Out.
Category Tree Display Mode - Specify the mode for category tree presentation. You can display only text, only images, or both.
See how the ‘Render category level’ feature works. The example is created for Women > Tops category.
Specify whether to allow or disallow the Multiselect option for the category tree.
Here is the example of the ‘Labels’ category tree with the Folding view type and enabled Multiselect.
Here is the example of the ‘Labels’ category tree with the Fly-Out view type and enabled Multiselect
Add Title & Description - Choose whether to replace category page metadata with your own info, or show it before/after category data.
Title - Specify the custom page title.
Description - Add the page description using the WYSIWYG editor.
Image - Choose and upload an image.
Top CMS Block -Select the CMS block on the base of which the page should be created.
Meta Tags Tab - Specify meta title, description and keywords for each custom page you create.
Categories & Store Views Tab - Select store views for which the page will be available. Choose categories products from which will be displayed on a custom page.
Filter & Filter Value - Select an attribute with its value. You can specify as many combinations (filter+value) as you need for a custom page. For instance, specify selection#1 with color-red and selection#2 with brand-puma to display only red puma items on a custom page.
You can use Magento web API integrators to communicate with the Shop By Page functionality.
The following methods are available:
POST request - to create or update a resource;
GET request - to retrieve data from a server;
PUT request - to create or update a particular page;
DELETE request - to delete a particular page.
To get the access to the “Infinite Scroll” settings please go to: Stores → Configuration → Amasty Extensions → Infinite Scroll
In the Loading Type field:
In the Display Page Numbers field:
In the AJAX Progress Image Path field:
With the Infinite Scroll extension, you can customize buttons at your taste.
In this section you can specify CSS classes of blocks after which the module should load products, toolbars and pager. This is sometimes needed when standard classes are removed from custom design themes.
Take a look at the Infinite Scroll smart navigation on the catalog pages. Load next and Info bar will significantly improve the customer experience.