Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    37
    Plugin Contributions
    0

    Default Latest Products actual #, not random?

    I have Latest Products set to 14 days but I don't want random items. I'd like for the exact last eight items I inputed to be what appears in the New Products for Month box. None of my items are ever the same so there would never be a problem of eight of the same thing, I just want only the last eight to be in there, not a random assortment of any time setting.

    Thanks!

  2. #2
    Join Date
    Feb 2007
    Posts
    37
    Plugin Contributions
    0

    Default Re: Latest Products actual #, not random?

    Is there anyone who has worked something out for this?

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

    Default Re: Latest Products actual #, not random?

    The specific change that you would need to make to achieve what you want is in includes/modules/new_products.php file and you would over-ride this with a copy in your template named folder and change this line (near the top)

    Code:
    $display_limit = zen_get_new_date_range();
    to be this
    Code:
    $display_limit = ' order by p.products_date_added desc limit 1';
    This with setting your maximum # to be displayed to 8 in the admin should get what you want
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Feb 2007
    Posts
    37
    Plugin Contributions
    0

    Default Re: Latest Products actual #, not random?

    With that change and setting the # to 8 in admin, I get the last product I put in showing up in Latest Products, but no others. It will only show the last one but not the last eight.

  5. #5
    Join Date
    Feb 2007
    Posts
    37
    Plugin Contributions
    0

    Default Re: Latest Products actual #, not random?

    Never mind. I changed the 1 in the code you gave me to 8 and now it works. Thanks!

 

 

Similar Threads

  1. [Done v1.3.9] new products listing not random
    By fakeDecoy in forum Bug Reports
    Replies: 27
    Last Post: 4 Jan 2011, 04:57 PM
  2. Featured Products - Main Page not Random
    By guruchill in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Apr 2010, 09:13 AM
  3. Featured products not random
    By Akasashasha in forum General Questions
    Replies: 1
    Last Post: 24 Nov 2009, 03:51 PM
  4. Sub Total not matching actual total of products in order
    By PadreHomer in forum General Questions
    Replies: 0
    Last Post: 10 Sep 2008, 11:54 PM
  5. Make new products not random?
    By prezzz in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Jul 2008, 07:40 PM

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