Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Reverse default product display order in 4.0.13

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 09-08-2005, 11:11 AM
 
gfiebich gfiebich is offline
 

Senior Member
  
Join Date: Feb 2003
Location: St. Paul, MN
Posts: 108
 

Default 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
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS
Reply With Quote
  #2  
Old 09-11-2005, 02:11 PM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default 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)
__________________
Instinctual
8,000 feet up in the Rocky Mountains of Colorado
X-Cart Versions 3.5.x - 4.0.x

IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind.
Reply With Quote
  #3  
Old 09-12-2005, 08:00 AM
 
gfiebich gfiebich is offline
 

Senior Member
  
Join Date: Feb 2003
Location: St. Paul, MN
Posts: 108
 

Default

Thanks for the tip! I wondered where custom product sorting had gone.
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS
Reply With Quote
  #4  
Old 09-12-2005, 08:30 PM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default

It should be done at search.php file
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:03 AM.

   

 
X-Cart forums © 2001-2020