Jump to content

Prestashop 1.7 Product listing how to add sorting by Unit Price

Recommended Posts

How to add feature to sort by unit price to the listing page.


I've tried to add

        $sortUnitPriceAsc = new SortOrder('product', 'unit_price_full', 'asc');
        $sortUnitPriceDesc = new SortOrder('product', 'unit_price_full', 'desc');

to /modules/ps_facetedsearch/src/Product/SearchProvider.php


Edited by Alien(PL) (see edit history)

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More