Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #3362092
hide out of stock products
Closed

Comments

  • dios1demonio0 started the conversation

    Hi, i really need to hide de out of stock products from the grid, elementor elements and search.

    I have already set the "Hide out of stock items from the catalog" in woocommerce settings, but it appears the template is ignoring that option.

    thanks, regards

  • dios1demonio0 replied

    sorry my selft response.

    found an option in theme options 

    theme options->shop grid->Hide “Out of Stock” Products

    thanks

  •  7,092
    Oliver replied

    Ok, thank you for letting know

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • dios1demonio0 replied

    Hi, the problem is in "The Gem Products Grid" in Elemento. The element is not respeting the filter in theme options->shop grid->Hide “Out of Stock” Products, also woocommerce settings.

    Any way to remove out of stock products from the products grid element?

    thanks

  •  7,092
    Oliver replied

    Hi,

    Please provide wp-admin access

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • dios1demonio0 replied

    Sorry my mistake, i modified the code in previus version using the old sample, and now i figured it out this expression is changed to the replaced one, and now it works with products grid, and products carrusel.

    old: 

    $isWChideON = get_option("woocommerce_hide_out_of_stock_items");
    if ($isWChideON == "yes") {
    //custom code
    }

    replaced bye:

    if ($stock_only) {
    //custom code
    };

    Sorry again

  •  7,092
    Oliver replied

    HI,

    Sorry for delay, thank you for letting know

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver