Thread: Sort by model

Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Location
    Massachusetts
    Posts
    156
    Plugin Contributions
    0

    Default Sort by model

    Hello Zenners,

    Found this thread (http://www.zen-cart.com/forum/showthread.php?t=70194) and followed its advice but it didn't work.

    I'm using ZC 1.3.7.1, and have tried to change the product sort order using the Display Product Listing Default Sort Order. I have changed the values from 1a through 6a but nothing happens in my catalog - example page at http://prestonribbons.com/catalog/in...dex&cPath=17_5

    I would appreciate some help on getting this to work.

    Thanks

  2. #2
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Sort by model

    Admin/ Configuration-Product listing-Display Product Listing Default Sort Order



    1a=model number sort ascending
    1d=model number sort descending
    2a=name sort ascending
    2d=name sort descending
    4a=price sort ascending
    4d=price sort descending

    Basically leave it alone and it will sort A-Z and 1-9.

    I just let it ride.
    Cheers!
    v2.2.1

  3. #3
    Join Date
    Jun 2005
    Location
    Massachusetts
    Posts
    156
    Plugin Contributions
    0

    Default Re: Sort by model

    Thanks for the info.

    Setting it at 1a or any other of the allowed settings has had no effect. I had some coding work done on this file to enable display of the sizes in columns. I'll get back to the php guru who did the job and see if his code is blocking the sorting.

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

    Default Re: Sort by model

    Actually, it is working ... the problem is it appears to not be working because it doesn't follow human logic but follows computer logic ...

    Your module numbers are being addressed as character/number which means they are not numerically handled but handled as ascii ...

    This means:
    1
    11
    111
    2
    22
    222

    vs what you want:
    1
    2
    11
    22
    111
    222

    If ALL products_model are numeric with NO characters, you could make that field numeric vs varchar ...

    IF this is the case, backup your database and change the field type to INT and see if the sort method magically fixes itself for you ...
    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!]
    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!

  5. #5
    Join Date
    Sep 2007
    Posts
    128
    Plugin Contributions
    0

    Default Re: Sort by model

    Linda (or someone),

    I know I'm bringing up an old topic but can anything be done when a client has both numerical and non-numerical model numbers?

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

    Default Re: Sort by model

    What are your model numbers like that you are having a problem with?
    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!]
    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. sort by model#
    By mikestaps in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 31 Aug 2010, 10:11 PM
  2. Admin Sort Model desc.
    By GG01 in forum General Questions
    Replies: 0
    Last Post: 2 Nov 2008, 03:13 AM
  3. Sort products by model only
    By DocRocks in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Apr 2008, 03:13 PM
  4. Sort by Model Number
    By janellez in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 12 Oct 2007, 05:34 AM
  5. Sort products by model number
    By hac in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 6 Sep 2007, 05:22 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