Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default How Can I Specify The Sort Order In The "Featured" Sidebar?

    I'd like to add a "Featured" sidebar to one of the sites I'm working on, but there doesn't seem to be a way to specify the order of the items within it. I want one of them to always stay on the top. The other three, below it, will be changed periodically. Is there a way to do this? Thanks!!

  2. #2
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: How Can I Specify The Sort Order In The "Featured" Sidebar?

    What do you want to sort by?
    Phil Rogers
    A problem shared is a problem solved.

  3. #3
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: How Can I Specify The Sort Order In The "Featured" Sidebar?

    As I said above, I want one listing always to be there, and the three below it to change when I decide to specify new "featured" items. :-) I don't care what order the three show up in, but I want the one to always be on top.

  4. #4
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: How Can I Specify The Sort Order In The "Featured" Sidebar?

    Two ways I can think of, you could either hard code the product you want on top into the side box code, then exclude it from the db query.
    Or
    Maybe implement something similar to this which by chance is a similar thing I posted earlier today!!
    http://www.zen-cart.com/showthread.p...Filter-Sidebox

    So instead of specifying more than one product to display at the top you would just specify the one you want.

    Obviously you need to use this as a guide how to implement on your particular sidebox but logic would be the same.

    Backup before you try anything and create a template override file when implementing.
    Phil Rogers
    A problem shared is a problem solved.

  5. #5
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: How Can I Specify The Sort Order In The "Featured" Sidebar?

    As I haven't got a clue how to do either, which would be easier for a total php-moron? LOL

  6. #6
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: How Can I Specify The Sort Order In The "Featured" Sidebar?

    Ah ok haha, well, actually having thought about it I doubt my option 2 for you will work because your featured side box is probably either selecting random entries and in which case the one you want to show might not be in the output or it might be ordering by rand in which case changing the order to my example means that "other" featured products probably won't get shown.

    So.. Option 1 is the way to do it.

    If you haven't a clue I don't mind giving you the code but I'm not logged on now so ill subscribe to this thread as a reminder to come back tomorrow to do it for you.

    If you haven't heard from me either pm me or just post again to remind me ;-)
    Phil Rogers
    A problem shared is a problem solved.

 

 

Similar Threads

  1. v151 Where is the code for the product listing sort "up" and "down' arrow?
    By rcrosier in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Jan 2013, 06:38 PM
  2. v139h Can I edit the name of a link under the "Categories" sidebar?
    By CasperPS in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 10 Apr 2012, 10:52 AM
  3. How can I change the "Order Number" counter?
    By mkalavitz in forum General Questions
    Replies: 3
    Last Post: 10 Feb 2010, 06:00 AM
  4. can you control the sort order of the featured products on the front page
    By George Susini in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Apr 2009, 08:05 PM
  5. How can I add options to the order "Status" list?
    By BruceWChenoweth in forum General Questions
    Replies: 2
    Last Post: 18 Feb 2009, 09:23 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