You probably noticed that the sorting of products in the OpenCart shopping cart is chaotic and not always logical. In order to correct this situation, we have developed a module that will allow you to adjust the sorting of the cart by default in a few clicks exactly as you need it.
Changing the sorting of cart products may be necessary if you sell products that have a certain specificity or you just like order in everything.
Our extension works with any cart and checkout modules, meaning items will also be sorted by the selected parameter in those modules as they work with the standard Cart library.
Sorting of products takes place not only in the cart, but also in other default places where orders are displayed, such as viewing orders in the customer's account, in email messages, in the admin, in the invoice, etc.
Cart sorting options to choose from:
in the order of adding products to the cart
in order of creation of products (by ID)
by product name (A-z)
by model
by quantity
by price
by total amount
by product weight
by product dimensions: length, width or height
You can also choose the order of sorting: ascending or descending, that is, from smaller to larger or vice versa and, similarly, alphabetically.
Module installation instructions:
Upload the module in the admin panel in the "Extensions" : "Install".
Go to the "Modifications" section and update the cache.
Go to the "Extensions" : "Extensions" : "Modules" and enable the module.
Edit module. Enable the status of the module and adjust all its options to your needs and save the settings.
Check module operation.
Bingo!
Changelog of Sorting products in the cart
v1.0.1 (09 October 2024) - Fixed sorting in other places where order products are displayed: personal account, email, admin, etc.
You must be logged in to view the files!
Віктор
10 October 2024
Модуль супер, саме те що потрібно для оптового магазину де десятки замовлень в одній накладній, спрощує в рази обробку замовлень. Окрема подяка за безкоштовну технічну підтримку! Автор завжди на звязку і оперативно реагує на звернення. Рекомендую до співпраці!
opencartbot
10 October 2024
Дякую за покупку і за відгук! Зворотній зв'язок допомагає нам стати краще.
Kerim Demiroglu
18 October 2022
Simple extension. Great support. Thanks for your work.
The OpenCart team has officially presented release 3.0.5.0, which contains a significant package of fixes, code cleanup, and compatibility improvements with modern PHP versions.
On November 20, 2025, a new major release of PHP was published - version 8.5. PHP 8.5 introduces useful improvements, but requires a careful approach when integrating into existing OpenCart projects.
The simplest way to solve this problem is to create an OCMOD modification that automatically adds module_id to the OpenCart module settings.
✕
We use cookies and other tracking technologies to improve your browsing experience our website, to personalize content and ads, provide social features media and our traffic analysis.
Necessary cookies enable core functionality of the website. Without these cookies the website can not function properly.
Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.
A set of cookies to collect information and report about website usage statistics without personally identifying individual visitors to Google.
Marketing cookies store user data and behaviour information, which allows advertising services to target more audience groups.