Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default Products do not display in sort order I want

    This is weird.
    I usually do not set sort order for products in a category, just leave the default of 0 and let them sort alphabetically.
    For a certain cat I need to display in a different sort order, so I start sorting them with intervals of 5: 0, 5, 10, etc.
    They display OK in the admin side, and also when I go into the category listing I see products displayed according to sort order, not alphabetically.
    But...when I started displaying the first product in the browser and go next, next, they display alphabetically!
    The admin is set to
    Categories/Product Display Order: Products Sort Order, Products Name
    There is no other valid option.
    I think I need to modify a certain file in the Admin, to eliminate ", Products Name".
    I did look at it with different browsers, restarted comp. to eliminate possibility of something in cache messing it up.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Products do not display in sort order

    See "Similar Threads" below.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default Re: Products do not display in sort order

    Quote Originally Posted by DrByte View Post
    See "Similar Threads" below.
    OK, I looked.
    I see that this is possible site-wide by modifying includes\index_filters\default_filter.php
    This is not what I need, I just need to display a certain category according to its sort order.
    It does this OK in the admin side and also when looking at the product listing.
    As I said before, it doesn't work when going prev - next in the cat.
    I suppose this "iterates through an array", to use programmer's jargon.
    Does Zen Cart have the ability to display products according to sort order, only for a selected category?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Products do not display in sort order

    It is well-known that (in v1.x) the previous/next uses a different sort order than what the user selects in the product listing.
    There are some admin settings that control the prev/next sort order.
    All the functionality applies to the entire store universally.

    What you've experienced is the way it's written. If you want to change it, whether universally, or for just one category, feel free to alter the code accordingly.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default Re: Products do not display in sort order

    Quote Originally Posted by DrByte View Post
    There are some admin settings that control the prev/next sort order.
    Which admin settings, please?
    Thanks.

    If it is Configuration -> Layout Settings -> Categories/Products Display Sort Order
    I have already been there.
    Unfortunately, it is not what I am looking for.
    Last edited by ckosloff; 10 Aug 2009 at 09:08 PM.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Products do not display in sort order I want

    Configuration ... Product Info ...
    Previous Next - Sort Order
    Products Display Order by
    0= Product ID
    1= Product Name
    2= Model
    3= Price, Product Name
    4= Price, Model
    5= Product Name, Model
    6= Product Sort Order
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default Re: Products do not display in sort order I want

    Quote Originally Posted by Ajeh View Post
    Configuration ... Product Info ...
    YES!
    #6 is exactly what I need because cats. that do have a sort order (for special reasons) will display in that previous - next order, whereas cats. that don't simply display alphabetically.
    The archer hit the target.
    Thanks.

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Products do not display in sort order I want

    Thanks for the update that this Sort Order was able to work for you ... we do aim to please ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v139h Product sort order on New Products Page not working
    By jmsnyder23 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 4 Aug 2014, 02:34 PM
  2. I want the sort order to display for users
    By joshuabaer23 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 7 Sep 2010, 10:12 AM
  3. Sort Order - Display Products by Quantity Available
    By calvinorr in forum General Questions
    Replies: 2
    Last Post: 18 Jan 2009, 01:19 AM
  4. Product sort order doesn't work- products display randomly!
    By ajshim in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 4 Dec 2007, 03:16 AM

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