• Resolved Billy Bragg

    (@billybragg)


    Hello, I commented on a previous thread concerning out of stock products displaying in the search. The provided code in that thread had no affect. Also, on top of the out of stock products displaying in search, their price comes up as FREE.

    If you could provide the code and/or replacement file to exclude out of stock products that would be fantastic!!! Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hi. Sorry for the long response. If this question is still actual, I can give you solution ).

    Open class-aws-table.php file, find line

    $custom = get_post_custom($id);
    
    

    and insert after this lines of code

    if ( isset( $custom['_stock_status'] ) && $custom['_stock_status'][0] == 'outofstock' ) {
      continue;
    }

    Then press ‘Reindex table’ button in the plugins settings page.

Viewing 1 replies (of 1 total)
  • The topic ‘Hide “Out Of Stock” Products From Search’ is closed to new replies.