Guido Buldrighini Posted October 25, 2019 Share Posted October 25, 2019 Hello, is it possible to order the products displayed using the "productcategory" module based on the price? Link to comment Share on other sites More sharing options...
0 datakick Posted October 25, 2019 Share Posted October 25, 2019 You will have to modify the module code. Simply change this line to $category_products = $category->getProducts($this->context->language->id, 1, 100, 'price', 'DESC'); That should do the trick. If you do this modification, you can't update the module to newer version. The easiest way to ensure this is to change module version to some very high number, ie 100.0.0. That's a hack, though. It would be very nice to have an option to *lock modules* in tb core Link to comment Share on other sites More sharing options...
0 Guido Buldrighini Posted October 25, 2019 Author Share Posted October 25, 2019 Thank you very much @datakick, it works like a charm. Link to comment Share on other sites More sharing options...
Question
Guido Buldrighini
Hello, is it possible to order the products displayed using the "productcategory" module based on the price?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now