Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  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,761
    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
    Feb 2007
    Location
    Santa Cruz, CA
    Posts
    14
    Plugin Contributions
    0

    Default Re: Randomly placed items on front page?

    Hi Seeker, did you have any luck? In the end I found it easier to present a front page based on categories, which aren't presented in random order (www.roll-over-rover.com/store). It was better for my overall site organization anyway, but I still find it frustrating that you can't sort the page of product listings according to your specified sort order - seems illogical, doesn't it?

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

    Default Re: Randomly placed items on front page?

    Quote Originally Posted by nabrown78 View Post
    Hi Seeker, did you have any luck? In the end I found it easier to present a front page based on categories, which aren't presented in random order (www.roll-over-rover.com/store). It was better for my overall site organization anyway, but I still find it frustrating that you can't sort the page of product listings according to your specified sort order - seems illogical, doesn't it?

    That's what I was going to do lol. How do you set it up so it will just display a catagory at home?

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Randomly placed items on front page?

    In admin > Configuration > Layout Settings, set "Categories - Always show on main page" to 1 (true). Set "Main page opens with category" to 0 for all, or a category id number to open a particular category.

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

 

 
Page 1 of 3 123 LastLast

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

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR