Jump to content

Sorting "popular products" - how to?


Guest oboi
 Share

Recommended Posts

Guest estelle

The whole point of the popular product box is that it shows the most popular item at the top!!

But if you want to hack it, you could modify this file: includes/boxes/popularProducts.inc.php and change the "ORDER BY popularity DESC" to something else. You could order by the product name ("ORDER BY name ASC"). Or you could order by the product ID ("ORDER BY productID ASC") if you wanted to show the items in the order in which they have been added to the inventory (assuming no items have been deleted).

Link to comment
Share on other sites

Guest oboi

Well see - the funny thing is that nothing has been purchased yet but the products are still "popular" :whistle:

not gonna get into why the client wants a custom order, but I will try that hack.

THANKS!!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...