Draggable Sort Product – drag & drop and automatic product positions in category (Magento 2)
YOU CAN TRUST US
25 years of experience in e-commerce and Magento 2
Fast delivery
Efficient implementation process
Simple and transparent complaint process
Working with clients worldwide
Free module updates
Payment by bank transfer
Kowal_DraggableSortProduct is a lightweight admin module for Magento 2 that streamlines manual sorting of products within a category.
In standard Magento, arranging product order in a category can be time-consuming: you need to scroll through the list and watch the values in the Position column, and any bigger change means many manual tweaks. This module solves that by adding drag & drop support and automatic position assignment.
How it works
On the category tab Products in Category, the module adds an extra column with a handle (draggable handle).
After dragging rows, the module:
recalculates Position values according to the current order,
updates position mapping for the selected products,
saves the data to the in_category_products field in JSON format (as Magento expects).
Key benefits
Faster product arrangement – drag, drop, done.
Fewer mistakes – positions are set automatically (1, 2, 3…).
Better control over merchandising – perfect for categories where order = sales (e.g., bestsellers, new arrivals, collections, product lines).
Minimal intrusion – simple JS mixin + grid column override.
Who is it for
For stores that:
frequently change product order in categories,
have large categories and want to save time,
build their assortment visually (product order matters for clarity and conversion).

W sklepie eldar.biz układ produktów w kategoriach ma bezpośredni wpływ na przejrzystość oferty i komfort zakupów. Klienci często przeglądają produkty „wzrokiem” – liczy się kolejność modeli, wariantów, serii i logiczne grupowanie w obrębie kategorii.
Problem
W standardowym Magento ręczne ustawianie pozycji produktów w kategorii było:
-
czasochłonne przy częstych zmianach,
-
podatne na błędy (duplikaty pozycji, „dziury” w numeracji),
-
niewygodne przy porządkowaniu większej liczby produktów.
Wdrożone rozwiązanie
Zastosowano moduł Kowal_DraggableSortProduct, który:
-
umożliwił przeciąganie produktów w siatce przypisania do kategorii,
-
automatycznie przeliczał wartości Position,
-
zapisywał kolejność zgodnie z mechanizmem Magento (JSON w in_category_products).
Efekt
-
Szybsze porządkowanie kategorii – układanie listy stało się operacją „drag & drop”.
-
Lepsza czytelność oferty – produkty można prezentować w logicznym ciągu (np. serie, kolekcje, priorytety sprzedażowe).
-
Mniej pomyłek w pozycjach – automatyczna numeracja eliminu zauważalną część błędów przy ręcznej edycji.
-
Większa kontrola nad merchandisingiem – łatwiej promować kluczowe produkty w górze listy.








