Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2015
    Location
    Livermore, California
    Posts
    4
    Plugin Contributions
    0

    Default Center Box New Products Listing on Category with Subcategories Pages are Random

    *** Please excuse this noob if I've posted this in the wrong forum ***

    I have a very strange problem with my "New Products" Listing on my category pages. On my HOME page, the listing is of new products sorted from new to old. When I click on one of my categories, my new products listing is totally random. In fact, it changes every time I reload the page.

    I'm sure it's something I did, but I have no clue how to fix it.

    My Shop -- http://www.jilbert.org/shop/

    Thanks in advance,
    Jill

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

    Default Re: Center Box New Products Listing on Category with Subcategories Pages are Random

    No that is normal and you will also find that the products when viewing a product are in that same category if I recall correctly
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Oct 2015
    Location
    Livermore, California
    Posts
    4
    Plugin Contributions
    0

    Default Re: Center Box New Products Listing on Category with Subcategories Pages are Random

    Yes ... it only shows the items in the same category ... but they aren't showing the newest first.

    Are you saying this is how it's suppose to be? If so, can I fix it so it basically shows the newest first?

  4. #4
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Center Box New Products Listing on Category with Subcategories Pages are Random

    You have to override the modules/new_products.php
    Not quite into the zenway, but for what I've seen, if you change

    if ($new_products_query != '') $new_products = $db->ExecuteRandomMulti($new_products_query, MAX_DISPLAY_NEW_PRODUCTS);

    to

    if ($new_products_query != '') $new_products = $db->Execute($new_products_query, MAX_DISPLAY_NEW_PRODUCTS);

    And
    $new_products->MoveNextRandom();
    to
    $new_products->MoveNext();

    In the query, you make a ORDER BY products_date_added ... Not sure the name of the field.
    Or use the sort order, and order by that.
    Anyway, it's more or less this way.
    But I think that the random makes more sense, because a customer, can see different products
    For specific products, perhaps the featured module....or even copy all that related to new products, and make a new module, that would query by the date.
    Last edited by mesnitu; 12 Dec 2015 at 11:04 PM.
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

 

 

Similar Threads

  1. Help with new products center box CSS
    By longstockings in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Jan 2011, 02:32 PM
  2. [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
  3. Category pages featured products are listing
    By ashadweb in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Oct 2010, 11:40 AM
  4. Replies: 1
    Last Post: 19 Aug 2009, 10:29 AM
  5. Replies: 1
    Last Post: 13 Jul 2009, 09:12 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