Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Customisable default sort for ProductCategory #123

Closed
jedateach opened this Issue Dec 6, 2012 · 4 comments

Comments

Projects
None yet
2 participants
Contributor

jedateach commented Dec 6, 2012

Allow the default sorting to be customised in ProductCategory.

ProductCategory::set_default_sort('Sort');
Contributor

wildflower commented Jul 4, 2013

This is probably related, The ?sortby=Title works but the ?sortby=Price doesn't on the ProductCategory page

I'm trying to debug it for 3.1

Contributor

jedateach commented Jul 4, 2013

Try using 'BasePrice' instead of 'Price'

Contributor

wildflower commented Jul 4, 2013

ah yip, just found it and was going to report back,
cheers
in _config.php
ProductCategory::set_sort_options( array('Title' => 'Alphabetical','BasePrice' => 'Lowest Price'));

Contributor

jedateach commented Jan 29, 2014

This should be fixed now with the switch to using the ss3 config system.

@jedateach jedateach closed this Jan 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment