Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2008
    Posts
    54
    Plugin Contributions
    0

    Default How can I change default sorting of products to be not by name but by model

    Not a question of life and death here,

    I was just wondering if it would be possible to easily change default sorting of products in categories in admin - I would like to have them sorted primarily by model...

    Thanks for any suggestion

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: How can I change default sorting of products to be not by name but by model

    in your admin, got to configuration => LayOut Settings ,and edit "Categories/Products Display Sort Order"

  3. #3
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: How can I change default sorting of products to be not by name but by model

    If you want to leave the catalog side alone, you could search the admin for: CATEGORIES_PRODUCTS_SORT_ORDER and where that constant is initially used, you could substitute the value for your desired sort order. Document this heavily and I would suggest just commenting out the assignment/use rather than removing the text completely:

    So instead of:
    Code:
    = '2';
    Would suggest something like:
    Code:
    = '2'; /* CATEGORIES_PRODUCTS_SORT_ORDER; */ // value modified to default to products_model 19-12-27
    Oh, and sorry, I used Design75's suggestion along with having enabled the ability to see the configuration_key associated with the configuration in question to then search the admin files for that configuration_key and see how it is/was used. I found logic associated with the above content.

    The above should help a little to find the code solution, if it's nowhere close to enough to help, shout out. While there's a little to be enjoyed from self-discovery, sometimes the job just has to get done. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Sep 2008
    Posts
    54
    Plugin Contributions
    0

    Default Re: How can I change default sorting of products to be not by name but by model

    Sorry, guys, I was not clear enough - I´m thinking about changing default sort order for admins (so in category_product_listing.php, I suggest), not for customers

  5. #5
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: How can I change default sorting of products to be not by name but by model

    Quote Originally Posted by Doomm View Post
    Sorry, guys, I was not clear enough - I´m thinking about changing default sort order for admins (so in category_product_listing.php, I suggest), not for customers
    my solution is for the admin

  6. #6
    Join Date
    Sep 2008
    Posts
    54
    Plugin Contributions
    0

    Default Re: How can I change default sorting of products to be not by name but by model

    OMG, I feel ashamed :-( Supposed this is for the catalog without trying it first - yes, you are right, this is, what I wanted, thank you both for help, buddies

 

 

Similar Threads

  1. Replies: 0
    Last Post: 14 Dec 2009, 05:18 AM
  2. Newbie: How do I change the name "model" to another name?
    By hugozc in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Aug 2009, 07:02 PM
  3. Duplicate Site - How do I change the default cookie name?
    By xtracool in forum General Questions
    Replies: 0
    Last Post: 1 Aug 2009, 10:16 AM
  4. Can't change products model and stock, text color
    By helder_007 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Apr 2009, 09:45 PM
  5. Sorting products by model instead of name
    By trondos in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 21 Jun 2007, 10:53 PM

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