Drag-and-Drop Category Product Sorting for Magento 2

The module adds a handle for dragging rows to the product grid in category editing and automatically recalculates values in the Position field.
Compatibility
2.4.9, 2.4.8, 2.4.7, 2.4.6, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.7, 2.3.6, 2.3.5, 2.3.4
€30.75
per item
Email to a Friend

Enquire about this product

Description / Drag-and-Drop Category Product Sorting for Magento 2

MAGENTO 2 · MAGENTO ADMIN PANEL · CATEGORIES · MERCHANDISING

Arrange products in a category by dragging them.

Kowal Draggable Sort Product

Move rows in the Products in Category tab and let the module recalculate positions. Arrange the visibility of bestsellers, new arrivals, or collections without entering each value manually.

Drag & drop · Automatic Position values · Category save

HOW IT WORKS IN PRACTICE

01 · Open a category
Go to the Products in Category list.

02 · Drag products
The handle in the grid lets you change the row order.

03 · Save the category
Magento stores the prepared position assignments.

What does your store gain?

Explore the module features, use cases, and settings.

Meet the module

Kowal_DraggableSortProduct is a lightweight admin module for Magento 2 that improves manual product sorting within a category.

In standard Magento, arranging the order of products in a category can be time-consuming: you need to move through the list and monitor values in the Position column, and every larger change means many manual adjustments. This module solves that problem by adding drag & drop support and automatic position assignment.

How does it work?

  • In the category Products in Category tab, the module adds an extra column with a handle, or draggable handle.

  • After rows are dragged, the module:

    • recalculates Position values based on the current order,

    • updates the position mapping for selected products,

    • saves data to the in_category_products field in JSON format, as expected by Magento.

Key benefits

  • Faster product arrangement – drag, drop, and save the category.

  • Fewer mistakes – positions are set automatically, 1,2,3…

  • Better control over product visibility – ideal for categories where the order supports offer presentation, such as bestsellers, new arrivals, collections, and product series.

  • Minimal interference – a simple JS mixin plus a grid column override.

Who is it for?

For stores that:

  • often change the order of products in categories,

  • have large categories and want to save time,

  • build their offer visually, where product order matters for clarity and conversion.

Saving changes and selected products

Dragging recalculates the Position fields according to the order of visible rows, 1, 2, 3… Selected products are added to the in_category_products mapping; the data is prepared in JSON for standard Magento saving.

Changing the order does not mean the database is updated immediately. After you finish working, save the category and check the result on the frontend.

Pagination, filtering, and frontend order

The mechanism works on visible grid rows. With many pages, filtering, and previously set positions, verify the final order of the entire category. This is not automatic catalog sorting based on sales or analytics.

The frontend must use sorting by Position. Sorting by price, name, or another criterion may display products in a different order than the one arranged in the admin panel.

Technical scope and implementation

The extension works in the admin panel: it adds a draggable-handle column and a product assignment script mixin. In the DI configuration, it replaces the CategoryTabProduct grid block, so check compatibility with other extensions that modify the same grid.

The package does not include its own configuration toggle. The correct module name to enable is Kowal_DraggableSortProduct.

Installation via Composer

Package kowal/module-draggablesortproduct, module Kowal_DraggableSortProduct. After configuring access to the Kowal repository, install the package, enable the module, update Magento, and clear the cache. In production, include compilation and static content deployment according to your store process.

From configuration to result

1. Open a category
Go to the Products in Category list.

2. Drag products
The handle in the grid lets you change the row order.

3. Save the category
Magento stores the prepared position assignments.

New collection at the beginning of the category

In the visible product list, move selected collection items higher. The module updates the Position fields and the mapping of selected products.

Then save the category. On the frontend, check the list sorted by position — selecting a different sorting option may display products in a different order.

Make everyday product merchandising easier

Want to adapt the module to your store? Ask about implementing Kowal Draggable Sort Product and discuss configuration or any needed extensions.

More Information

Theme compatibility Luma / Blank, KOWAL

Module Installation Instructions

Installation via Composer

You will receive Composer repository access details, the customer email address and license token, by email after purchase. They are also available in the customer panel after logging in at kowal.store. Replace TWOJ_EMAIL_KLIENTA with the email address of your account and TWOJ_TOKEN with the token you received. Run the commands in the Magento root directory.

composer config repositories.kowal composer https://repo.kowal.storecomposer config http-basic.repo.kowal.store 'TWOJ_EMAIL_KLIENTA' 'TWOJ_TOKEN'composer require kowal/module-draggablesortproduct

Completing the installation

After installing the package, update Magento and clear the cache:

php bin/magento setup:upgradephp bin/magento cache:flush

In a production environment, also run DI compilation and deploy static files according to your store deployment process.

Press to skip carousel

We found other products you might like!

Write Your Own Review
You're reviewing: Drag-and-Drop Category Product Sorting for Magento 2
Your Rating:
Price
Quality
Support
loader
Loading...

You submitted your review for moderation.

Implemented in real Magento 2 stores
Case Study – eldar.biz

In the eldar.biz store, the arrangement of products within categories directly affects the clarity of the offer and the shopping experience. Customers often browse products visually—the order of models, variants, series, and logical grouping within a category matters.

Problem

In standard Magento, manually setting product positions in a category was:

  • time-consuming with frequent changes,

  • prone to errors (duplicate positions, gaps in numbering),

  • inconvenient when organizing a larger number of products.

Implemented solution

The Kowal_DraggableSortProduct module was used, which:

  • enabled dragging products in the category assignment grid,

  • automatically recalculated Position values,

  • saved the order according to the Magento mechanism (JSON in in_category_products).

Result

  • Faster category organization—arranging the list became a drag-and-drop operation.

  • Better offer readability—products can be presented in a logical sequence (e.g., series, collections, sales priorities).

  • Fewer position errors—automatic numbering eliminates a noticeable share of errors from manual editing.

  • Greater merchandising control—it is easier to promote key products at the top of the list.

Update cookie preferences