X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Changing the "Sort by" options (https://forum.x-cart.com/showthread.php?t=29171)

mbaic 02-25-2007 11:46 AM

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!

balinor 02-26-2007 03:51 AM

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.

skeep5 03-07-2007 05:30 PM

Re: Changing the "Sort by" options
 
How can i make the Product link be the active sort after hiding the Default? Thanks!

balinor 03-08-2007 04:35 AM

Re: Changing the "Sort by" options
 
General Settings/Appearance Options:

Select the order in which products should be displayed within a category:

skeep5 03-08-2007 08:17 AM

Re: Changing the "Sort by" options
 
oh duh! Thanks!

mbaic 05-22-2007 07:45 PM

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?

Jon 05-22-2007 10:07 PM

Re: Changing the "Sort by" options
 
^ Using an FTP program.

mbaic 05-23-2007 05:01 AM

Re: Changing the "Sort by" options
 
Thanks!!! I feel a whole lot less stupid.

BeckyMason 05-31-2007 07:31 AM

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?


All times are GMT -8. The time now is 02:47 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.