fb_pixel

prestashop 1.7 sort category page - product id

Development | Web Development
Description
prestashop 1.7 sort category page - product id ASC
Attachments
No attachments
Info
Description
https://addons.prestashop.com/en/fast-mass-updates/8515-sorting-out-products-by-category-display-order.html

or
function in \modules\productscategory\productscategory.php

You can sort product by passing sorting information to the getProducts member function. Change your below code:

// Get infos
$categoryProducts = $category->getProducts($this->context->language->id, 1, 100); /* 100 products max. */

to the following code

// Get infos
$categoryProducts = $category->getProducts($this->context->language->id, 1, 100, 'price', 'ASC'); /* 100 products max. */

on January 09th, 2020 (8:48 pm)
All coments
This job has not been commented yet.