You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Is there a way to set up the cart so when someone click on a category producst are displayed ramdonly instead od in the order you have entered them in the database?
looks like they are alphabetical
This may be possible if you're using MySQL to house the products. If so, I think you can make the following mod:
In the file ./cgi-bin/library/modules/ste_prod.pl
Look for the lines:
###
if ($sql_limit_string ne "") {
$sql_limit_string =~ s/start/$fd_startrow/gs;
$sql_limit_string =~ s/rows/$store_products_to_display_per_page/gs;
} ######### End of if statement.
###
And change to:
###
if ($sql_limit_string ne "") {
$sql_limit_string =~ s/start/$fd_startrow/gs;
$sql_limit_string =~ s/rows/$store_products_to_display_per_page/gs;
$sql_limit_string = "ORDER BY RAND() $sql_limit_string";
} else {
$sql_limit_string = "ORDER BY RAND()";
} ######### End of if statement.
###
I don't think this is possible if you're not using MySQL.
___________________________
Nick Hendler
Webmaster, Kryptronic, Inc.
Offline
Guest,12/15/2002 08:56:50 PM wrote:
Is there a way to set up the cart so when someone click on a category producst are displayed ramdonly instead od in the order you have entered them in the database?
Quick question: do you truley want them to be random, do you want them just in a different order?
Offline
In admin under HTML Pages & Elements | Manage HTML Pages (System) | Update Splash (Welcome) Page. Move the code:
(CGIGET TYPE="SUB" VALUE="ste_prod_disp")
Up to wherever you want it.
Offline