PDA

View Full Version : new products showing on mainpage, not random?



spuhg
11-30-2009, 08:35 AM
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

pgmarshall
11-30-2009, 12:57 PM
Have a search throught the board and you will find exactly what you are looking for ... EJ has written a module for you (http://www.oscmax.com/forums/oscmax-v2-customization-mods/18498-replace-new-products-random-products-index-page.html) ... 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,

ridexbuilder
12-03-2009, 03:17 PM
Strewth! Where d'ya drag that one up from? :D
Forgot all about that one.
:snowboard:

bkpie
12-05-2009, 05:21 AM
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);

spuhg
12-07-2009, 08:44 AM
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

pgmarshall
12-07-2009, 08:53 AM
There is a section in the Wiki (http://wiki.oscdox.com/new_products_this_month).

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,