If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)


Featured templates

OpenCart 2.x. How to change products sort order

This tutorial shows how to update products sort order within a category in OpenCart 2.x.

By default products in OpenCart are displayed is ascending order, all the products sort order is set to 0.

  1. You can change products order manually by setting each product order in the Catalog – Products tab of admin panel.

  2. Select a product, open the Data tab, scroll it down and set the Sort order. Products with the highest number will be displayed in the end of the list.

  3. Refresh the category listing page to see the changes.

  4. You can also filter catalog by prices. Open the /system/modification/catalog/controller/product folder and edit the category.php file.

  5. Find the p.sort_order value and change it to p.price:

    if (isset($this->request->get['sort'])) {
    		$sort = $this->request->get['sort'];
    		} else {
    		$sort = 'p.price';
  6. Save changes in the file. Refresh category page with Ctrl+F5 to preview changes.

Feel free to check the detailed video tutorial below:

OpenCart 2.x. How to change products sort order
Live Chat
We help you to choose the right product.
Start chat