Jump to content

1.7.6 Product listing sort by UnitPrice


Recommended Posts

Hi everyone,

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)
Link to comment
Share on other sites

  • 2 years later...

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...