Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2006
    Posts
    209
    Plugin Contributions
    0

    Default move sold out items to end of category listing

    HI,
    I need to move sold out items to the end of the category product listing page

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: move sold out items to end of category listing

    Give them all sort orders of 999
    20 years a Zencart User

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

    Default Re: move sold out items to end of category listing

    You could customize the SELECT statement to use the products_quantity as part of the WHERE statement ...

    Peek in the:
    /includes/index_filters/default_filter.php

    and test this on the CASE statement for the Product Name:
    Code:
            case 'PRODUCT_LIST_NAME':
              $listing_sql .= " order by p.products_quantity DESC, pd.products_name " . ($sort_order == 'd' ? 'desc' : '');
              break;
    When sorting by name, is this the affect that you are wanting?
    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: v1.5.5]
    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!

  4. #4
    Join Date
    Oct 2006
    Posts
    209
    Plugin Contributions
    0

    Default Re: move sold out items to end of category listing

    Hi,
    That didn't seem to work. I had something like that working before but it seems to have turned itself off.
    Is there something in the admin panel that could be preventing it from working?

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

    Default Re: move sold out items to end of category listing

    What is the default Sort Order for the listing when you select a category?
    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: v1.5.5]
    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. Replies: 2
    Last Post: 30 Jul 2014, 11:58 AM
  2. Replies: 7
    Last Post: 28 Mar 2011, 04:08 AM
  3. Moving sold out items to a new category
    By monkeytastic in forum General Questions
    Replies: 7
    Last Post: 21 Jul 2009, 05:17 PM
  4. How hold sold items in catalog with show "SOLD OUT"?
    By NickolasB in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 18 Oct 2007, 06:47 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