Kryptronic Software Support Forum

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.

#1 12-15-2002 20:56:50

Guest
Guest

Random Products

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?

 

#2 12-15-2002 20:59:02

Guest
Guest

Re: Random Products

looks like they are alphabetical

 

#3 12-16-2002 10:40:52

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19906
Website

Re: Random Products

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.


Nick Hendler

Offline

 

#4 06-24-2004 16:54:10

TheThinker
Member
From: Salt Lake City, Utah
Registered: 06-16-2004
Posts: 535
Website

Re: Random Products

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?   


Regards,
Eric

Offline

 

#5 06-28-2004 17:27:37

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19906
Website

Re: Random Products

I think they wanted random, but not sure.


Nick Hendler

Offline

 

#6 07-21-2004 17:07:00

one2ku
Member
From: CA
Registered: 04-29-2004
Posts: 176
Website

Re: Random Products

where can i find the file to go in and change the splash page items?
for example:  i want to move the items that are on the bottom of the page to the
top. 

thanks
kevin

Offline

 

#7 08-04-2004 10:47:37

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19906
Website

Re: Random Products

In admin under HTML Pages & Elements | Manage HTML Pages (System) | Update Splash (Welcome) Page.  Move the code:

Code:


(CGIGET TYPE="SUB" VALUE="ste_prod_disp")

Up to wherever you want it.


Nick Hendler

Offline

 

Board footer