Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Mar 2006
    Location
    Belarus
    Posts
    72
    Plugin Contributions
    0

    Default Out of stock items in the end of lists - how to do?

    Hi!
    Is it possible to setup the shop or hack a code to put out-of-stock products in the end of lists?
    I have many out-of-stock products, but I don't want to remove them from shop since they help to drive traffic to site, and many of them quite rare so other people links to them in forums etc.
    But it is not good to browse three pages of out-of-stock items just to see 3-5 available products. So, if there is a way to AUTOMATICALLY put available items in the beginning of category and search results, this would be great.
    Thanks.

  2. #2
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Out of stock items in the end of lists - how to do?

    If I followed a link to a rare item I was interested in only to find that it wasn't available I would not be a happy customer.

  3. #3
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Out of stock items in the end of lists - how to do?

    A common misleading marketing route for most e-tailers but it works.

    90% of your customers will just hit the back button and look elsewhere

    but to each their own!

    easiest way is to set the sort order to like 99 on out of stock items

  4. #4
    Join Date
    Mar 2006
    Location
    Belarus
    Posts
    72
    Plugin Contributions
    0

    Default Re: Out of stock items in the end of lists - how to do?

    Yes, I know that I can manipulate sort order manually. But is it possible to automate this?
    As to 'misleading', it is not always true. Say, I had rare lens recently, and unable to fine any info on it in the Internet. I think that someone interested will be happy to see at least it's pictures and description rather than find nothing at all.
    Thanks.

  5. #5
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Out of stock items in the end of lists - how to do?

    Haven't done this in awhile, so not sure but it will put you in right direction

    /includes/index_filters/default_filter.php

    find:
    Code:
    // sort by products_sort_order when PRODUCT_LISTING_DEFAULT_SORT_ORDER is left blank
    // for reverse, descending order use:
    //       $listing_sql .= " order by p.products_sort_order desc, pd.products_name";
              $listing_sql .= " order by p.products_sort_order, pd.products_name";
              break;
    change to:
    Code:
    // sort by products_sort_order when PRODUCT_LISTING_DEFAULT_SORT_ORDER is left blank
    // for reverse, descending order use:
    //       $listing_sql .= " order by p.products_sort_order desc, p.products_quantity desc";
              $listing_sql .= " order by p.products_sort_order, p.products_quantity desc";
              break;

  6. #6
    Join Date
    Mar 2006
    Location
    Belarus
    Posts
    72
    Plugin Contributions
    0

    Default Re: Out of stock items in the end of lists - how to do?

    Thanks, rbarbour.
    This is better already, but products sorted by quantity now. I would like to have them sorted alphabetically in both parts of a list ('in stock' and 'out-of-stock'). I'll try to modify sql query to accomplish this. Thank for pointing to right part of code :-)

  7. #7
    Join Date
    Mar 2006
    Location
    Belarus
    Posts
    72
    Plugin Contributions
    0

    Idea or Suggestion Re: Out of stock items in the end of lists - how to do?

    I did it :-)

    Code:
    $listing_sql .= " order by IF( p.products_quantity >0, 1, 0 ) DESC , p.products_sort_order , pd.products_name";
    Thanks once again for pointing in right direction :-)

  8. #8
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Out of stock items in the end of lists - how to do?

    Thank you for posting the solution that worked for you!

  9. #9
    Join Date
    Oct 2008
    Location
    AZ
    Posts
    25
    Plugin Contributions
    0

    Default Re: Out of stock items in the end of lists - how to do?

    IS there a way to change the "sold Out" to out of stock when quantity set to zero?
    Buzz Reed
    desertpokersupplies.com
    Your Poker Supply Headquarters

  10. #10
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Out of stock items in the end of lists - how to do?

    Are you referring to the "sold out" button (image)?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 3 Nov 2011, 10:05 PM
  2. How to process this order? some items are out of stock
    By sunraise2005 in forum General Questions
    Replies: 1
    Last Post: 14 Dec 2010, 03:22 PM
  3. how do i not display out of stock items?
    By proseller in forum General Questions
    Replies: 6
    Last Post: 30 Nov 2010, 08:04 PM
  4. How can I get out of stock items to show?
    By BenhamCollectibles in forum General Questions
    Replies: 6
    Last Post: 26 May 2010, 10:36 PM
  5. Out of stock items showing up in the NEW PRODUCTS box
    By Flinders in forum General Questions
    Replies: 2
    Last Post: 8 Apr 2009, 10:24 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