Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

default_specials Random products


Guest

Recommended Posts

Hello Guys...

 

There is any contribution to rotate (Randomize) the products on default_specials.php????

 

I appretiate any Help about this matter

Link to comment
Share on other sites

Hi,

 

Try this:

 

Find in default_specials.php:

 

$new = tep_db_query("select p.products_id .......

 

at the end of the query, you should find:

 

order by s.specials_date_added DESC limit

 

Change it to:

 

order by RAND() limit

 

Hope that makes sense

 

StrictlyPC

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...