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

Set xcart to show highest SKU numbers first by default

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-05-2005, 08:31 AM
 
dgrif dgrif is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 68
 

Default Set xcart to show highest SKU numbers first by default

Is it possible to set the cart so it will show the highest SKU number first? I need the newest products added to show up first in all categories. I can do it by pos but that's lot of work to have to change those each time you add a product. If I can set it to always show the highest SKU number first that will take care of my problem.

Thanks to all of you for the help and patience all of you have given this newbie.

Delores
__________________
x-cart-4.0.13 gold
Reply With Quote
  #2  
Old 04-05-2005, 09:40 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

edit search.php

find the bit that says "ASC" "DESC" and swap them around
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 04-05-2005, 09:51 AM
 
dgrif dgrif is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 68
 

Default SKU Numbers

Hi,
Thanks for your reply.
I'm not finding anything in search.php like this.

Delores
__________________
x-cart-4.0.13 gold
Reply With Quote
  #4  
Old 04-05-2005, 10:02 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

edit include/search.php

find

Code:
$direction = ($data["sort_direction"] ? "DESC" : "ASC");

replace with

Code:
$direction = ($data["sort_direction"] ? "ASC" : "DESC");
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 04-05-2005, 10:24 AM
 
dgrif dgrif is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 68
 

Default SKU Numbers

Hi,
Worked great!
Thank you so much.

Delores
__________________
x-cart-4.0.13 gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 12:28 PM.

   

 
X-Cart forums © 2001-2020