Featured templates

OpenCart 2.x. How to change products sort order

Stacy Martin August 8, 2016
Rating: 5.0. From 2 votes.
Please wait...

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
OpenCart Responsive Themes
This entry was posted in OpenCart Tutorials and tagged Opencart2, order, product. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket