Support » Plugin: WooCommerce » disable out of stock only on related products

  • Resolved Roi Webreach

    (@roi-webreach)


    Hey
    what is the best way to disable the out of stock products from the related products query?
    i found some solutions but they are not working / doesnt seems like the right way to do it.
    i think that if i can do something like this it will be the best way:
    if ( ! function_exists( ‘get_related_products_query’ ) ) {
    update_option( ‘woocommerce_hide_out_of_stock_items’, ‘yes’ );
    }
    or something like that…
    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘disable out of stock only on related products’ is closed to new replies.