Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2008
    Posts
    83
    Plugin Contributions
    0

    Default New products shows newest first - how?

    Hi all..

    Is there any way to make my newest new product first on my new product list?

    I can understand that the list is random when I've added multiple products at the same date, but now I added a single product in the believe that it would appear first, but it doesnt?
    Could it do that?
    Hugs..
    Sine
    My store-to-be..

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: New products shows newest first - how?

    Quote Originally Posted by Azeela View Post
    Hi all..

    Is there any way to make my newest new product first on my new product list?

    I can understand that the list is random when I've added multiple products at the same date, but now I added a single product in the believe that it would appear first, but it doesnt?
    Could it do that?
    You haven't said which new product list. There are three, the side box, the listing box on the home page (and others) and the new products listing page.

    In each case you would need to re-write the database query that extracts the data to order it by date added, and then re-write the PHP that steps through the list to remove the randomising.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Apr 2008
    Posts
    83
    Plugin Contributions
    0

    Default Re: New products shows newest first - how?

    It's the box on my mainpage with just one product that's the most important. Well my sidebox thing will probably follow I guess, but it's the one in the main area that concerns me the most.

    But where do I find where to rewrite what you said?
    Hugs..
    Sine
    My store-to-be..

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: New products shows newest first - how?

    Oh but you are so in luck. The specific change that you would need to make to achieve what you want is very easy indeed. You would over-ride your includes/modules/new_products.php file and in your copy would change this line (near the top)
    $display_limit = zen_get_new_date_range();
    to be this
    $display_limit = ' order by p.products_date_added desc limit 1';
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Apr 2008
    Posts
    83
    Plugin Contributions
    0

    Default Re: New products shows newest first - how?

    Wohoo!!! Thanks SO much!!
    Hugs..
    Sine
    My store-to-be..

 

 

Similar Threads

  1. New products shows newest first - how?
    By aditya369 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 8 Dec 2011, 03:19 PM
  2. Displaying newest products in New Products
    By sweetmissjiff in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 1 Sep 2010, 06:03 PM
  3. How to set new products in first position?
    By DArnaez in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 27 Jul 2009, 01:58 AM
  4. Newest First?
    By ekat in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 18 Sep 2007, 12:45 PM
  5. Show newest items first
    By Moncia in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 8 Apr 2007, 06:45 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR