Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Filter Out of Stock Products from Listings

    Hi all,

    I want to know if anyone knows how I can modify something so that all products with stock level = 0 do not show in the listings?

    I know that if I switch the status to off this does it, however it has an undesirable affect as it stops google from still being able to crawl the pages.

    So in summary, I need to not show out of stock products, but the product urls still crawlable.

    Many Thanks

    Phil

  2. #2
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Filter Out of Stock Products from Listings

    for some reason it always takes for me to post a question here and then suddenly I work out a solution for my self.

    it was easy, I simply added

    and p.products_quantity >= 1

    below every

    where p.products_status = 1

    in the includes/index_filters/default_filter.php file

    let me know if anyone see why this might cause any issues, as of now seem to do the trick perfectly :o)

    Phil

 

 

Similar Threads

  1. Replies: 16
    Last Post: 2 May 2014, 10:07 PM
  2. Hide out of stock products from advanced search
    By solo_400 in forum Basic Configuration
    Replies: 4
    Last Post: 28 Mar 2013, 06:08 PM
  3. Out of stock listings?
    By MountainCraft in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 16 Mar 2012, 10:12 PM
  4. Out of stock products still in listings.
    By siuda in forum Basic Configuration
    Replies: 3
    Last Post: 17 Nov 2009, 04:32 AM
  5. remove products from shop when out of stock
    By raimond in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Oct 2006, 02:52 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