hi
the new products which show on the main page are all products which were loaded right after the other.
can what shows up be made more random?
thanks
This is a discussion on new products showing on mainpage, not random? within the osCommerce 2.2 Discussion forums, part of the osCommerce 2.2 Forums category; hi the new products which show on the main page are all products which were loaded right after the other. ...
hi
the new products which show on the main page are all products which were loaded right after the other.
can what shows up be made more random?
thanks
Have a search throught the board and you will find exactly what you are looking for ... EJ has written a module for you ... 2 minute install.
If you want a bit more extensive edit to control which products are displayed use the New Products Module which is stickyed in the osCMax 2 forum.
Regards,
pgmarshall
_______________________________
Strewth! Where d'ya drag that one up from?
Forgot all about that one.
![]()
Hosting plans with installation, configuration, contributions, support and maintenance.
Or if you have alot of new products and want them shown random fine in Newproducts.php simple solution
if (($no_of_new_products = tep_db_num_rows($new_products_query)) > 0) {
while ($_new_products = tep_db_fetch_array($new_products_query)) {
$new_products[] = $_new_products;
$list_of_prdct_ids[] = $_new_products['products_id'];
}
add below
shuffle($new_products);
hi
i will try your code.
also,
the new products disappear after the months end. is there a way to add code to stop this?
thanks
There is a section in the Wiki.
There is also a thread on this board explaining how to make them random or so you can select them in the admin section.
Regards,
pgmarshall
_______________________________
Bookmarks