How to specify layered navigation filters order in magento?

How to specify layered navigation filters order in magento?

July 26, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How to specify layered navigation filters order in magento?

Reordering Filters in Magento Using Amasty Shopby

As an experienced developer working with e-commerce platforms like Magento, I often receive queries about customizing filter behavior using extensions such as Amasty’s Shopby. In this post, we’ll explore how to reorder filters, specifically moving the color filter ahead of the price filter.

Why Reorder Filters?

Reordering filters can significantly improve the user experience by presenting relevant options in a logical sequence. For example, if your store specializes in clothing, it makes sense to show the color and size filters before the price range.

Approaches to Reordering Filters

There are two primary methods you can use to reorder filters:

  1. Using the Admin Panel
  2. Manipulating the Database Directly

Let’s dive into each approach:

Method 1: Using the Admin Panel (Recommended)

Amasty’s Shopby extension provides a user-friendly interface for managing filter attributes and their display order.

  1. Log in to your Magento admin panel.
  2. Navigate to Amasty > Shopby Options.
  3. Find the attribute you want to reorder, such as “color”.
  4. Click on the “Edit” button next to this attribute.
  5. Under the “Position” field, enter a lower value than the price attribute’s position.

For example, if the price attribute has a position of 20, set the color attribute’s position to 15. The filters will now display in the order you specified: Color before Price.

Method 2: Manipulating the Database Directly

While the admin panel is typically preferred, there are cases where direct database manipulation may be necessary. Always ensure you have a backup of your data before proceeding with this approach.

  1. Open your MySQL management tool.
  2. Locate the amshopby_attributes table in your Magento installation.
  3. Update the position field for the desired attributes accordingly.

For instance, to reorder the color attribute:

UPDATE amshopby_attributes SET position = 15 WHERE code = 'color';

Remember to refresh your cache and index after making these changes.

Best Practices

  • Always test changes in a staging environment before deploying them to production.
  • Keep an eye on Amasty’s documentation for any updates or compatibility notes regarding the Shopby extension.
  • Consider consulting with Magento experts at Laravel Company for complex customizations.

Conclusion

Reordering filters in Magento using Amasty’s Shopby extension is a straightforward process that can greatly enhance the user experience. Whether you choose to do this through the admin panel or directly via the database, always ensure your changes are tested thoroughly and aligned with your store’s specific needs.

Don’t hesitate to reach out to the support team at Laravel Company if you require further assistance in optimizing your Magento site for better performance.

Database Extensions Admin Orders

Our network