morepork Posted December 1, 2009 Share Posted December 1, 2009 Hi there, I was wondering how I could make the Bestseller page (once a customer has clicked on All Best sellers on the block on the homepage) always display products in descending order, regardless of what option I have selected in my Products preferences in the Back Office. They seem to display in descending order in the homepage block, but not on the subsequent page...My Current Settings are:Default Order: Position in CategoryAscendingI like to have my products display in Ascending order for general product display, but I think it makes more sense for the entire Bestseller list to display in Descending order, from the top seller down through to the bottom seller.I have tried just ordering my products within the category list in reverse, but that only works if I have a finite number of products in a category. As soon as I add another, it would necessitate manually changing the order of everything again...If I could make some sort of hard coded exception for the Bestseller list that would be great. Can anyone suggest how this might be achieved? Link to comment Share on other sites More sharing options...
morepork Posted December 3, 2009 Author Share Posted December 3, 2009 Perhaps something can be added to best-sales.php, best-sales.tpl or even product-sort.tpl? I notice at the top of product sort there is a line which I imagine determines the order the products should display on the Bestsellers page. Presumably this line tells the page to look at the Back Office preferences that are selected for Order By and Order Way and display accordingly?: {if isset($orderby) AND isset($orderway)} Perhaps in best-sales.tpl I can point it to a product-sort_best.tpl (a duplicate of product-sort.tpl) but which has been coded to display in descending order only...?Can anyone help with the php expression to instruct the Bestseller page to display products in Descending order? Link to comment Share on other sites More sharing options...
rocky Posted December 4, 2009 Share Posted December 4, 2009 You could just change the link from best-sales.php to best-sales.php?orderway=desc Link to comment Share on other sites More sharing options...
morepork Posted December 4, 2009 Author Share Posted December 4, 2009 That, is a beautiful thing! :coolsmile: It's perfect - thankyou so much.... Link to comment Share on other sites More sharing options...
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