Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: sort sub-category view by date added

    You could peek at the product_prev_next.php module and see where the order is defined from the settings ...
    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!

  2. #12
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: sort sub-category view by date added

    Quote Originally Posted by moltar View Post
    Open the file [FONT="Courier New"]/includes/index_filters/default_filter.php[/FONT]

    Find the line that says (line 113 in default 1.3.7):

    PHP Code:
    $listing_sql .= ' order by '
    Replace with:

    PHP Code:
    $listing_sql .= ' order by p.products_date_added DESC,'
    Go to Configuration -> Product Listing -> Display Product Listing Default Sort Order. Set this to anything valid, like "2a" for example. This isn't going to do anything, just activates the part of the code in default_filter.php file that does the sorting.

    I tried this and it didn't do anything at all. Can you help me figure out why? I have the right line and everything.

    I have the "all products" sorted by date, but I want each of the categories to display that way as well and right now they are sorting by name.

    Thanks!

  3. #13
    Join Date
    Apr 2009
    Location
    Portland, OR
    Posts
    106
    Plugin Contributions
    0

    Default Re: sort sub-category view by date added

    dont mind me , just make a note, do I can have this in file

  4. #14
    Join Date
    Jun 2010
    Location
    Ohio
    Posts
    36
    Plugin Contributions
    0

    Default Re: sort sub-category view by date added

    Quote Originally Posted by moltar View Post
    Open the file [FONT="Courier New"]/includes/index_filters/default_filter.php[/FONT]

    Find the line that says (line 113 in default 1.3.7):

    PHP Code:
    $listing_sql .= ' order by '
    Replace with:

    PHP Code:
    $listing_sql .= ' order by p.products_date_added DESC,'
    Go to Configuration -> Product Listing -> Display Product Listing Default Sort Order. Set this to anything valid, like "2a" for example. This isn't going to do anything, just activates the part of the code in default_filter.php file that does the sorting.

    I'm using version v1.3.9d and I see a few places that have $listing_sql .= ' order by '; but there is other things around them I'm afraid I mess up. I've attached a copy of my default_filter.php What should I be replacing? My line 113 in my version looks nothing like the above.

  5. #15
    Join Date
    Oct 2008
    Posts
    591
    Plugin Contributions
    0

    Default Re: sort sub-category view by date added

    I like if someone can help please .

    ZEN 1.3.9.H

    How can show first the new products added in category ?

    Thanks

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v151 Change sort order of products to date added to category
    By Bee01 in forum Customization from the Admin
    Replies: 2
    Last Post: 25 May 2013, 02:21 PM
  2. How to set the products to sort by date added?
    By sharontan in forum Basic Configuration
    Replies: 10
    Last Post: 5 Mar 2012, 03:21 AM
  3. sort by price, date added, etc
    By RollzRoyce in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Aug 2010, 05:03 PM
  4. Sort by Date Added/Product ID
    By edadk in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 10 Nov 2008, 04:56 PM
  5. Sort By Date Added!!
    By brotherhud in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 21 Feb 2007, 01:39 AM

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