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

Product listing & displaying in 3.[1]4.4

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-17-2003, 10:30 AM
 
bicom bicom is offline
 

Newbie
  
Join Date: Aug 2003
Posts: 1
 

Default Product listing & displaying in 3.[1]4.4

Is there a way to make products list in alphabetical order once a category is selected. I work with 3.[1]4.4 and the erlier code do not work
with my version of X-Cart.

Regards

Bengt
Reply With Quote
  #2  
Old 09-19-2003, 06:27 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

http://www.cartlab.net/lab/catalog/product_3_Product_Sort.html

Why not just let your customers sort themselves?
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 11-12-2003, 05:48 AM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

I have to say, we shouldn't pay extra for this.
Reply With Quote
  #4  
Old 11-12-2003, 08:48 AM
 
Kanyon71 Kanyon71 is offline
 

Senior Member
  
Join Date: Oct 2002
Location: Lutz, FL
Posts: 128
 

Default

Do a search and you will find the code to change the sort order to anything you want it to be. I don't have the link right off hand but search for Sort Order and you will find some threads on it.
__________________
Kanyon71
http://www.web-wizards.com
For hosting solutions that fully support X-Cart!
Mention the forums for a discounted package!
Reply With Quote
  #5  
Old 11-13-2003, 10:34 AM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Thanks Kanyon, I'll look around.
Reply With Quote
  #6  
Old 01-06-2004, 04:37 PM
 
nfc5382 nfc5382 is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 477
 

Default

i did some research and was able to hardcode my sort by changing one line in func_search_products in include/func.php

change the following
Code:
function func_search_products($query, $membership,$first=0,$count_all=-1,$get_all=0, $orderby="orderby") {

to

Code:
function func_search_products($query, $membership,$first=0,$count_all=-1,$get_all=0, $orderby="product") {

replace "product" with whatever field you want to sort by.
__________________
-----------------------
x-cart v4.7.6 [LIVE]
x-cart v4.0.18 [retired 2004-2016]
x-cart v3.5.13 [retired]
x-cart v3.4.14 [retired]
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 09:29 AM.

   

 
X-Cart forums © 2001-2020