SDCPieter
VP-CART New User
United Arab Emirates
57 Posts |
Posted - August 20 2008 : 06:06:39
|
Or try the easy way?
On line 1230 (approx, my code is customized) in that TopTenProduceDetail Sub, try changing
strsql=strsql & " ORDER BY sum(o.numitems) DESC"
to
strsql=strsql & " ORDER BY NEWID() DESC"
That should randomize the records returned by the database. I think this might only work for SQL Server though. So instead of ordering by the amount of times this product has been bought, you will randomly display 10 products. you might want to add a "having" clause to only select the most popular products though
- |
|
|