Results 1 to 10 of 21

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    34
    Plugin Contributions
    0

    Default Randomly placed items on front page?

    Right now if you go to http://www.chipfast.com/z/ and refresh it the items randomly post.

    How can I make them static? Thanks!

    BTW Great program, once we get things running we will be donating!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Randomly placed items on front page?

    You will have to edit the tpl_modules_whats_new.php file
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2007
    Posts
    34
    Plugin Contributions
    0

    Default Re: Randomly placed items on front page?

    Thanks, where is this located? and what do I need to edit?

    Thanks, btw.

  4. #4
    Join Date
    Feb 2007
    Location
    Santa Cruz, CA
    Posts
    14
    Plugin Contributions
    0

    Default Re: Randomly placed items on front page?

    In fact that is not the file you need to edit. You need to edit includes>modules>new_products.php (Or preferably includes>modules>YOUR_TEMPLATE>new_products.php). Beneath the SQL query, there is a line that says:
    PHP Code:
     $new_products $db->ExecuteRandomMulti($new_products_queryMAX_DISPLAY_NEW_PRODUCTS); 
    That's what's randomizing everything. I also want to base the index display on product sort order, not random, but I can't figure out how to do it. Anyone got an idea?

  5. #5
    Join Date
    Jan 2007
    Posts
    34
    Plugin Contributions
    0

    Default Re: Randomly placed items on front page?

    Thanks a lot! :)

  6. #6
    Join Date
    Jan 2007
    Posts
    34
    Plugin Contributions
    0

    Default Re: Randomly placed items on front page?

    If I figure out how to post the items in a non random order, I'll reply to this top to help ya.

  7. #7
    Join Date
    Jan 2009
    Location
    Ireland
    Posts
    16
    Plugin Contributions
    0

    Default Re: Randomly placed items on front page?

    Quote Originally Posted by nabrown78 View Post
    In fact that is not the file you need to edit. You need to edit includes>modules>new_products.php (Or preferably includes>modules>YOUR_TEMPLATE>new_products.php). Beneath the SQL query, there is a line that says:
    PHP Code:
     $new_products $db->ExecuteRandomMulti($new_products_queryMAX_DISPLAY_NEW_PRODUCTS); 
    That's what's randomizing everything. I also want to base the index display on product sort order, not random, but I can't figure out how to do it. Anyone got an idea?
    Maybe you are right, but it don't randomize teh "New Products for..." on the home page. Knows somebody where can I change it to be not random displayed?

    Thanks

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Randomly placed items on front page?

    Maybe you are right, but it don't randomize teh "New Products for..." on the home page.
    Home page new items begins in the tpl_modules_whats_new.php
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Featured Items to show randomly on page reload.
    By thebigkick in forum Customization from the Admin
    Replies: 0
    Last Post: 5 Jun 2012, 04:28 PM
  2. Number of items showing on front page
    By thestampnomad in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Oct 2009, 12:31 AM
  3. Replies: 2
    Last Post: 6 Oct 2009, 11:52 PM
  4. Front Page New Items?
    By squeakypants in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Nov 2006, 04:33 AM

Posting Permissions

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