Results 1 to 10 of 10

Hybrid View

  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????

 

 

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