Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Questions (/forumdisplay.php?f=67)
-   -   "Sort by" widget (/showthread.php?t=10223)

yankeestonk February 10th, 2014 12:08 PM

"Sort by" widget
I added the "sort by" widget to all the results pages of the site. It was a while ago, and I'm not really sure at this point how I did it!...which makes it tricky to amend it.

Right now if I click on say "Drivers" under store categories, it will pull up all the Drivers in random order. However the "sort by" widget on top will show "Price (low to high). If you click go it will put them in order from low to high...but I'd like it to say "random" or "default order" when the page first opens, to avoid confusion. Can you tell me how to go about doing this?


Eric February 10th, 2014 12:33 PM


You need to change this:

PHP Code:

       "price"   => "Price (low to high)",
"-price"   => "Price (high to low)",
"name"     => "Product Name (a - z)",
"-name"   => "Product Name (z - a)"

To this:
PHP Code:

       "random"   => "Random",
"price"   => "Price (low to high)",
"-price"   => "Price (high to low)",
"name"     => "Product Name (a - z)",
"-name"   => "Product Name (z - a)"

Here: The Factory > Your Store > VIEWS > CATEGORY PAGE > Default > Product list module > Theme settings ()


yankeestonk February 10th, 2014 01:13 PM

worked great. thanks!

bombpetite February 12th, 2014 06:33 PM

Hi Yankeestonk,

Do you mind sharing you code for "products per page" and "sort by price" widgets / drop downs. Html and PHP would be greatly appreciated!!

It would save us the headache of trying to figure this one out.

Many Thanks,


Eric February 12th, 2014 07:40 PM

Hi Eugene,

Here's how to do that:


bombpetite February 13th, 2014 04:29 AM

Brill Eric. Thanks a lot!

All times are GMT -5. The time now is 12:55 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.