Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2010
    Posts
    31
    Plugin Contributions
    0

    Default Sorting products in categories

    Hi there,
    I've been reading posts for some time now. They are really helpful. Thanks for that.

    I am opening a web based stamp store with Zen-Cart.

    http://www.sariucak.com/store/

    I installed it a couple of days ago. I played with the appearance a little. Installed some add ons. Now I am quite happy with the results.
    But I have 1 question for you guys.

    This is one of my categories: http://www.sariucak.com/store/index....ndex&cPath=1_2
    the problem when you lok at it is that the sorting. As you see First item is "Scott 111" then 113 and then comes "Scott 14". Same thing happens with the items in 20s & 200s, 30s & 300s. How can I make this sorting starting from the lowest number?

    Thanks in advance
    Cenk

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Sorting products in categories

    The easiest way to make them sort in alpha/numerical order would be to make all the numbers three digit, beginning with 0 where appropriate. E.G. Scott 015, Scott 123, etc.

    Modifying the sorting code would be a custom job for an expert PHP coder.

    As I see an item named Scott 2055a, you may need to use four digits for the numbers to get total consistency.
    Last edited by gjh42; 20 Oct 2010 at 01:12 AM.

  3. #3
    Join Date
    Oct 2010
    Posts
    31
    Plugin Contributions
    0

    Default Re: Sorting products in categories

    Quote Originally Posted by gjh42 View Post
    The easiest way to make them sort in alpha/numerical order would be to make all the numbers three digit, beginning with 0 where appropriate. E.G. Scott 015, Scott 123, etc.

    Modifying the sorting code would be a custom job for an expert PHP coder.

    As I see an item named Scott 2055a, you may need to use four digits for the numbers to get total consistency.
    Thanks for the reply gjh42.
    I thought about that but these numbers are Special Stamp Catalogue numbers & I need them to be exactly as per the catalogue so the customer can find it out in that catologue they own,

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

    Default Re: Sorting products in categories

    If you set a Sort Order on the Products ... and then set the default Sort Order for the Product Listing to blank, for display by Sort Order ... does that fix the display?
    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
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Sorting products in categories

    If all of the products (or all of them in any given category) will have a Scott number, that should do the job. Assign the Scott number as the sort order (if there is a ### and a ###a, those should fall into alphabetical order even though they have the same sort order).

  6. #6
    Join Date
    Oct 2010
    Posts
    31
    Plugin Contributions
    0

    Default Re: Sorting products in categories

    Quote Originally Posted by Ajeh View Post
    If you set a Sort Order on the Products ... and then set the default Sort Order for the Product Listing to blank, for display by Sort Order ... does that fix the display?

    Quote Originally Posted by gjh42 View Post
    If all of the products (or all of them in any given category) will have a Scott number, that should do the job. Assign the Scott number as the sort order (if there is a ### and a ###a, those should fall into alphabetical order even though they have the same sort order).
    Thanks again for the reply guys.
    If we're talking about Configuration/Product Listing/Display Product Listing Sort Order
    It was blank already by default. I put the word "Scott" but no luck.

    By the way gjh42 yes all items start with "Scott" then a number. eg

    Scott 123, Or Scott B12, or Scott 1234a

    Thanks
    Cenk

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Sorting products in categories

    Then give all of the products a numerical sort order equal to their Scott number.
    This is not a text field but a number (presumably integer) field.

    If the number can start with a letter like Scott B12, you will have to figure out where in the sort order that kind of number would go. Is it related to 12, or related to B?

  8. #8
    Join Date
    Oct 2010
    Posts
    31
    Plugin Contributions
    0

    Default Re: Sorting products in categories

    Quote Originally Posted by gjh42 View Post
    Then give all of the products a numerical sort order equal to their Scott number.
    This is not a text field but a number (presumably integer) field.
    Can you please describe this a little detailed ?

    Quote Originally Posted by gjh42 View Post
    If the number can start with a letter like Scott B12, you will have to figure out where in the sort order that kind of number would go. Is it related to 12, or related to B?
    It is related to letter "B". Products Start with letters should come after products start with numbers. eg: My last item with numbers is "Scott 2765" Then I continue with "Scott B1" & so on

    Thanks Cenk

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Sorting products in categories

    What's to detail? Scott 2765 gets sort order 2765. Scott 1234a gets order 1234, and it will fall almost if not precisely in order with Scott 1234 and Scott 1235 when displayed. Since the sort order number is not displayed to the customer, the letters can all be translated into numbers starting with 10000 for A. Scott B1 could have sort order 20001, Scott B23 gets 20023, Scott C1 gets 30001, Scott K1 gets 110001, etc.

  10. #10
    Join Date
    Oct 2010
    Posts
    31
    Plugin Contributions
    0

    Default Re: Sorting products in categories

    Quote Originally Posted by gjh42 View Post
    What's to detail? Scott 2765 gets sort order 2765. Scott 1234a gets order 1234, and it will fall almost if not precisely in order with Scott 1234 and Scott 1235 when displayed. Since the sort order number is not displayed to the customer, the letters can all be translated into numbers starting with 10000 for A. Scott B1 could have sort order 20001, Scott B23 gets 20023, Scott C1 gets 30001, Scott K1 gets 110001, etc.
    Never mind. :) I was asking where the sort order is.:) Anyways I found it. It looks OK now. Thanks gjh42

 

 

Similar Threads

  1. Sorting by Price in Categories?
    By youderian in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 10 Nov 2008, 09:56 PM
  2. sorting categories
    By Goofster in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 13 Jul 2008, 12:15 AM
  3. Sorting... on Categories and All Products
    By sposey in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 26 Mar 2008, 10:39 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