Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jun 2004
    Location
    United Kingdom London
    Posts
    74
    Plugin Contributions
    0

    Idea or Suggestion Random Products Display on Homepage

    Hi

    Can someone tell me how to stop the random display of products on the homepage . Ideally I will like it to display the new products added recently not just displaying randomly.

    Thanks

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Random Products Display on Homepage

    All of the Centerboxes are based on random display ... which is based on the maximum number of products to look at and the maximum number of products to be displayed ...

    You would have to recode them to not have them work in that manner ...

    How are you wanting them to display?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jun 2004
    Location
    United Kingdom London
    Posts
    74
    Plugin Contributions
    0

    Default Re: Random Products Display on Homepage

    Quote Originally Posted by Ajeh View Post
    All of the Centerboxes are based on random display ... which is based on the maximum number of products to look at and the maximum number of products to be displayed ...

    You would have to recode them to not have them work in that manner ...

    How are you wanting them to display?
    I would like the homepage to just display the first five new products at all times

  4. #4
    Join Date
    Jun 2004
    Location
    United Kingdom London
    Posts
    74
    Plugin Contributions
    0

    Default Re: Random Products Display on Homepage

    How do I recode them and what template?

  5. #5
    Join Date
    Jun 2004
    Location
    United Kingdom London
    Posts
    74
    Plugin Contributions
    0

    Default Re: Random Products Display on Homepage

    Quote Originally Posted by fbzencart View Post
    How do I recode them and what template?

    PLEASE HELP WITH THIS RECODE... I want just new product to display on the homepage at all time and not randomly.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Random Products Display on Homepage

    Have you an URL to your site that we can peek at perhaps? It helps to better understand your current display vs what you are trying to accomplish ...

    Note: there are settings to set the time period of New Products and settings to select of these New Products how many should be looked at and then settings to set from the New Products found how many should be displayed ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Mar 2005
    Location
    Helsinki
    Posts
    570
    Plugin Contributions
    0

    Default Re: Random Products Display on Homepage

    I was wondering something similar.. I'd need somekind of random product module... I would just need to get four random products (any category,date so on) images and links ofcourse to the product...
    I need it to my product display page instead of the customers also bought list.. can I somehow fetch the products from all listing?

  8. #8
    Join Date
    Apr 2007
    Posts
    139
    Plugin Contributions
    0

    Default Re: Random Products Display on Homepage

    Hi Linda

    I too want to disable random display? The disadvantage of random display is that it ALSO display my Gift Certificate.

    How do I change this?

    Thanks

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Random Products Display on Homepage

    If the problem with Random is based on New Products ... check your setting for what New Products are really defined as in the Configuration ... Maximum Values ...
    New Product Listing - Limited to ...
    Limit the New Product Listing to
    0= All Products
    1= Current Month
    7= 7 Days
    14= 14 Days
    30= 30 Days
    60= 60 Days
    90= 90 Days
    120= 120 Days
    You could then edit the products that you do not want to ever show in there by changing the products_date_added field in the products table to older than your setting ... this can be done via phpMyAdmin ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Random Products Display on Homepage

    Quote Originally Posted by fbzencart View Post
    I would like the homepage to just display the first five new products at all times
    You could customize the file:
    /includes/modules/new_products.php

    And change the select statements to add an order by products_date_added so the new ones are at the top ...
    PHP Code:
    if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {
      
    $new_products_query "select p.products_id, p.products_image, p.products_tax_class_id, p.products_price, p.products_date_added
                               from " 
    TABLE_PRODUCTS " p
                               where p.products_status = 1 " 
    $display_limit;
    } else {
      
    $new_products_query "select distinct p.products_id, p.products_image, p.products_tax_class_id, p.products_date_added,
                                               p.products_price
                               from " 
    TABLE_PRODUCTS " p
                               left join " 
    TABLE_SPECIALS " s
                               on p.products_id = s.products_id, " 
    TABLE_PRODUCTS_TO_CATEGORIES " p2c, " .
      
    TABLE_CATEGORIES " c
                               where p.products_id = p2c.products_id
                               and p2c.categories_id = c.categories_id
                               and c.parent_id = '" 
    . (int)$new_products_category_id "'
                               and p.products_status = 1 " 
    $display_limit;

    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Random display of products on Product Listing
    By Kevin205 in forum General Questions
    Replies: 2
    Last Post: 16 Mar 2013, 08:42 PM
  2. Can I display a random collection of products on my main page?
    By canemasters in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Apr 2012, 02:42 PM
  3. Remove 'New Products' and display random products
    By xman888 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 19 Apr 2011, 06:48 AM
  4. Homepage Wont Display Featured Products
    By limelites in forum General Questions
    Replies: 4
    Last Post: 26 Feb 2010, 02:17 AM
  5. Display Random products instead of New Products on Index
    By vegascoug in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Sep 2009, 09:35 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