Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    213
    Plugin Contributions
    0

    Default Product Sorting Question

    I have a customer who is still running Zen 1.2.4 and they want me to update their site so that when you are reviewing a category that the most recent added products to that category show first.

    Is there a way via the Admin to do this or do I need to update some code somewhere to change a sort by clause or something.

    Thanks.

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

    Default Re: Product Sorting Question

    On the Product listing this is not built in ... but you could customize it to work that way ...

    You would need to change the order by in the select statement(s) ...

    You might mention to your customer that the Product Listing is more for knowing the products by name or model or price etc. and that the New Product Listing is for knowing things by date and can have a filter set as to what NEW really is ...
    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!

  3. #3
    Join Date
    May 2007
    Posts
    213
    Plugin Contributions
    0

    Default Re: Product Sorting Question

    Do you happen to know which file(s) I would need to look in to chage the query?

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

    Default Re: Product Sorting Question

    Most likely you will work with the file:
    /includes/index_filters/default_filter.php

    There is a "forced" sort order for 20a to represent the products_sort_order ... this can give you an idea of a method to utilize a sorting method that is not part of the products listing titles ...

    Or, you can add a new column for the title and content where the customer can revert to the sort by date ...

    Be sure to keep a good backup of the original file as there are no overrides for this file ...

    Read things carefully in that file as you will notice there are numerous conditions that build the select statement ...

    As search on:
    order by

    will show you a lot of these to help get you on track ...
    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. v150 Sorting Question
    By cruzer323 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 22 Mar 2012, 03:32 AM
  2. Sorting by model question.
    By imcdonald04 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 11 Sep 2011, 04:10 PM
  3. Manufacturers Sidebox Sorting Question
    By marauders56 in forum Basic Configuration
    Replies: 1
    Last Post: 6 Aug 2008, 09:00 PM
  4. featured items sorting mod not sorting
    By elishama3 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 27 Mar 2008, 04:39 AM
  5. Sorting question dealing with numbers.
    By redrumloa in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 13 Aug 2006, 02:42 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