Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2007
    Posts
    87
    Plugin Contributions
    0

    Default Featured Product Sort Order!?!?!?

    I've set each products sort order. I've looked for every setting I can to change how the products are ordered. I cannot get the Featured Product box in the center to display ordered.

    In admin>config>display products display it is set to 8 to use the product sort order. I've even tried setting it to other numbers. THe products still list randomly.

    I see no reason why this is not working. I am trying to finish this website for a client. This is my first time using Zen Cart. Sorry if this is something obvious.

  2. #2
    Join Date
    Jul 2007
    Posts
    77
    Plugin Contributions
    0

    Default Re: Featured Product Sort Order!?!?!?

    Hi,
    simply do the following

    change in
    /includes/modules/featured_products.php

    PHP Code:
    $featured_products $db-> ExecuteRandomMulti($featured_products_queryMAX_DISPLAY_SEARCH_RESULTS_FEATURED ); 
    to
    PHP Code:
    $featured_products $db->Execute$featured_products_queryMAX_DISPLAY_SEARCH_RESULTS_FEATURED); 
    and
    PHP Code:
        $featured_products->MoveNextRandom(); 
    to
    PHP Code:
        $featured_products->MoveNext(); 

  3. #3
    Join Date
    Jun 2007
    Posts
    87
    Plugin Contributions
    0

    Default Re: Featured Product Sort Order!?!?!?

    I knew that had to do with it! I tried removing it and it wouldn't load the page.

    Thank you so much!! THAT DID IT!!!!!

  4. #4
    Join Date
    Jul 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Featured Product Sort Order!?!?!?

    i changed the two lines of code... it seems to sorting the products by there ID#. is there a way so that i can get zen cart to display the featured items so that i can control the order in which the items are displayed. possibly by the end date????

  5. #5
    Join Date
    Jun 2007
    Posts
    87
    Plugin Contributions
    0

    Default Re: Featured Product Sort Order!?!?!?

    Quote Originally Posted by devon789456316541560 View Post
    i changed the two lines of code... it seems to sorting the products by there ID#. is there a way so that i can get zen cart to display the featured items so that i can control the order in which the items are displayed. possibly by the end date????
    If you make the changes that are stated above you can sort the items by "Sort Order". If you go to Catalog>Categories/Products you can edit each product from there. Just click the edit button for each one and look for a field called "Sort Order".

    1 will appear first and 2 next.... so on.

  6. #6
    Join Date
    Jul 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Featured Product Sort Order!?!?!?

    Thank You

    Wont this also change the order of the products when being displayed on the products page????

  7. #7
    Join Date
    May 2008
    Posts
    10
    Plugin Contributions
    0

    Default Re: Featured Product Sort Order!?!?!?

    I've tried the above fix to includes/modules/featured_products.php and had no luck. Featured listing display order is set to 8 = sort order, and products are assigned sort numbers.

    The listing order is affected in the product listing of the admin interface, but not on the featured products page of the site.

    Ideas?

  8. #8

    Default Re: Featured Product Sort Order!?!?!?

    I cannot get the Featured Product box in the center to display ordered.
    If the sorting you referring to is in the main page for example that the above wouldn't work alone.

    We dealt with this issue by modifying MySQL query in: /includes/modules/your_template/featured_products.php

    Line 29
    Change this:
    Code:
    and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'";
    to this:
    Code:
    and pd.language_id = '" . (int)$_SESSION['languages_id'] . "' ORDER BY products_sort_order ASC";
    Note: with the above code the admin will lose control over sorting featured products, but you've probably guessed that.

    Moderator, sorry for reviving the old post. The solution above may help somebody else with this issue.
    Case Badges by Techiant

  9. #9
    Join Date
    May 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: Featured Product Sort Order!?!?!?

    It does'ny look like there was a clear fix for the original question. I went through all the steps even sort by product after changing the PHP like the original poster stated on 09 AUG 07 and that didn't work either. Is there a way to just fix the code so ZenCart makes it work the way it supposed to inn the first place, through ADMIN->CONFIG->FEATUREDLISTING->DISPLAYPRODUCTDISPLAY ? (

  10. #10
    Join Date
    Jun 2010
    Posts
    1
    Plugin Contributions
    0

    Default Re: Featured Product Sort Order!?!?!?

    Techiant's post worked for me and it allowed the admin to change the sort order!

 

 

Similar Threads

  1. v154 Randomize sort order for Specials or Featured
    By bravo685 in forum General Questions
    Replies: 1
    Last Post: 8 Sep 2015, 12:20 PM
  2. sort order of featured products - is it broken in 1.3.8a?
    By karma-lab in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 24 Aug 2015, 05:00 PM
  3. v151 Product Sort within Category - having problems changing the default sort order
    By Don Wagner in forum Customization from the Admin
    Replies: 4
    Last Post: 21 Oct 2012, 03:03 AM
  4. Sort Order for Featured products
    By Ryk in forum General Questions
    Replies: 2
    Last Post: 8 Aug 2010, 01:26 PM
  5. Featured product sort order on main page
    By spitalnic in forum General Questions
    Replies: 0
    Last Post: 22 Feb 2010, 04:50 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