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

Sort products by Quantity available

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-29-2011, 06:33 PM
 
Thomastoes Thomastoes is offline
 

Advanced Member
  
Join Date: Jun 2011
Posts: 33
 

Default Sort products by Quantity available

hello,
Im trying to add a new sort option to the admin section. i would like to be able to show in stock items at the top of the list.

i found someones mod for 4.1.x but i am running 4.4.2.
__________________
4.4.2
Reply With Quote
  #2  
Old 07-01-2011, 10:05 AM
 
Thomastoes Thomastoes is offline
 

Advanced Member
  
Join Date: Jun 2011
Posts: 33
 

Default Re: Sort products by Quantity available

i got the quantity sort to work!
the only thing now is trying to make it the default sort option... could anyone help me there?

i need to add it to the admin section (general setting/appearance) so i can select it from the drop down menu.

so if anyone is reading this, do you think i need an SQL file for that?

please help!
__________________
4.4.2
Reply With Quote
  #3  
Old 07-01-2011, 01:16 PM
 
Thomastoes Thomastoes is offline
 

Advanced Member
  
Join Date: Jun 2011
Posts: 33
 

Default Re: Sort products by Quantity available

well i got it. this is the thread i used. i couldnt get the SQL to work, and i figured it was out dated because the codes they show are slightly different than what are in the .php files on xcart 4.4.2.

long story short, this one works for 4.4.x. you just have to change some of the coding.

http://forum.x-cart.com/showthread.php?t=26847
__________________
4.4.2
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 03:35 PM.

   

 
X-Cart forums © 2001-2020