Results 1 to 6 of 6

new products showing on mainpage, not random?

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. ...

      
  1. #1
    Active Member
    Join Date
    Nov 2009
    Posts
    157
    Rep Power
    3


    Default new products showing on mainpage, not random?

    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

  2. #2
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,428
    Rep Power
    48


    Smile Re: new products showing on mainpage, not random?

    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
    _______________________________

  3. #3
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,944
    Rep Power
    34


    Talking Re: new products showing on mainpage, not random?

    Strewth! Where d'ya drag that one up from?
    Forgot all about that one.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  4. #4
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    357
    Rep Power
    10


    Default Re: new products showing on mainpage, not random?

    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);

  5. #5
    Active Member
    Join Date
    Nov 2009
    Posts
    157
    Rep Power
    3


    Default Re: new products showing on mainpage, not random?

    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

  6. #6
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,428
    Rep Power
    48


    Smile Re: new products showing on mainpage, not random?

    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
    _______________________________

Similar Threads

  1. Random Products
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 09-24-2009, 09:11 AM
  2. Replace New Products with Random Products on the index page
    By ridexbuilder in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 04-28-2009, 02:07 AM
  3. Random Products
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-19-2008, 09:30 AM
  4. Random Products
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-09-2007, 01:23 PM
  5. Specials For August showing on mainpage twice
    By kelly34 in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 08-05-2005, 09:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •