X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Reverse default product display order in 4.0.13 (https://forum.x-cart.com/showthread.php?t=16465)

gfiebich 09-08-2005 11:11 AM

Reverse default product display order in 4.0.13
 
Back in xcart 3.5, the admin contained an option to reverse the default display order of products. Now in xcart 4.+ we have options to sort products by SKU, Name, and Price, but have lost the ability to reverse the default listing direction (unless I'm mistaken). To do this in 4.+, you have to make one small change under the hood.

In /products.php look for

Code:

if(!isset($sort_direction))
    $sort_direction = 0;


and change this to

Code:

if(!isset($sort_direction))
    $sort_direction = 1;


Note that this will only reverse the default display order on product listings on category pages - not in search results or in the admin.

This was done in xcart 4.0.13

instinctual 09-11-2005 02:11 PM

keep in mind
 
Keep in mind that you can still go into the categories menu and list out the products in a category and order them by hand as well...I think a lot of people have lost that because it was moved from the search results page...

Cheers ;o)

gfiebich 09-12-2005 08:00 AM

Thanks for the tip! I wondered where custom product sorting had gone.

Dongan 09-12-2005 08:30 PM

It should be done at search.php file


All times are GMT -8. The time now is 04:26 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.