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

Changing the "Sort by" options

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-25-2007, 11:46 AM
 
mbaic mbaic is offline
 

Member
  
Join Date: Dec 2006
Posts: 10
 

Default Changing the "Sort by" options

Hello,

When looking at product, at the top of the page there is

Sort by : SKU Product Price Default

I'm trying to remove "Default" options. Also, I want 'SKU' to read Style Number

I've looked in the main/search_sort_by template, and it kind of looks like these values are read from a table? I looked at the tables in the database, and nothing is making sense.


Any help would be appreciated.

Thanks!
__________________
version 4.0.19
Reply With Quote
  #2  
Old 02-26-2007, 03:51 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Changing the "Sort by" options

Look at the very top of include/search.php, this bunch of code:

"productcode" => func_get_langvar_by_name("lbl_sku"),
"title" => func_get_langvar_by_name("lbl_product"),
"price" => func_get_langvar_by_name("lbl_price"),
"orderby" => func_get_langvar_by_name("lbl_default")

remove this line to get rid of the 'default' option:

"orderby" => func_get_langvar_by_name("lbl_default")

'SKU' is a language variable, so you can change that in your languages area.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-07-2007, 05:30 PM
 
skeep5 skeep5 is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 47
 

Default Re: Changing the "Sort by" options

How can i make the Product link be the active sort after hiding the Default? Thanks!
__________________
---------------
Brandon Larsen
---------------
X-Cart version 4.4.3
X-Cart version 4.1.9
X-Cart version 4.1.10
Reply With Quote
  #4  
Old 03-08-2007, 04:35 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Changing the "Sort by" options

General Settings/Appearance Options:

Select the order in which products should be displayed within a category:
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-08-2007, 08:17 AM
 
skeep5 skeep5 is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 47
 

Default Re: Changing the "Sort by" options

oh duh! Thanks!
__________________
---------------
Brandon Larsen
---------------
X-Cart version 4.4.3
X-Cart version 4.1.9
X-Cart version 4.1.10
Reply With Quote
  #6  
Old 05-22-2007, 07:45 PM
 
mbaic mbaic is offline
 

Member
  
Join Date: Dec 2006
Posts: 10
 

Default Re: Changing the "Sort by" options

Quote:
Originally Posted by balinor
Look at the very top of include/search.php, this bunch of code:

"productcode" => func_get_langvar_by_name("lbl_sku"),
"title" => func_get_langvar_by_name("lbl_product"),
"price" => func_get_langvar_by_name("lbl_price"),
"orderby" => func_get_langvar_by_name("lbl_default")

remove this line to get rid of the 'default' option:

"orderby" => func_get_langvar_by_name("lbl_default")

'SKU' is a language variable, so you can change that in your languages area.

This will be as stupid as stupid can be as far as questions are concerned. Where do I find the include/search.php file?
__________________
version 4.0.19
Reply With Quote
  #7  
Old 05-22-2007, 10:07 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Changing the "Sort by" options

^ Using an FTP program.
Reply With Quote
  #8  
Old 05-23-2007, 05:01 AM
 
mbaic mbaic is offline
 

Member
  
Join Date: Dec 2006
Posts: 10
 

Default Re: Changing the "Sort by" options

Thanks!!! I feel a whole lot less stupid.
__________________
version 4.0.19
Reply With Quote
  #9  
Old 05-31-2007, 07:31 AM
 
BeckyMason BeckyMason is offline
 

Newbie
  
Join Date: Dec 2006
Posts: 1
 

Default Re: Changing the "Sort by" options

I'm looking to sort my products by importance- is that possible? Ie to have them come up in a list with the most important products first and then their accessories and other products later. Any ideas?
__________________
4.1.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 09:32 AM.

   

 
X-Cart forums © 2001-2020