Home Forums WoodMart support forum product display failure

product display failure

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #343562

    Optica Valls
    Participant

    I already had this problem in previous versions. It seems that it works badly when there are products without stock that should not appear in the product loop. Any solution?
    Sending screenshot.

    Attachments:
    You must be logged in to view attached files.
    #343573

    Hello,

    Please elaborate what you require with some more relevant screenshot with the URL of the page to check it myself and help you out accordingly.

    Best Regards

    #343591

    Optica Valls
    Participant

    When there are products out of stock, please leave a blank space.

    You can see this bug on the home page, but it also happens in the store. To correct it, I am forced to put the following in functions:

    function show_only_instock_products ($ query) {
    $ meta_query = $ query-> get (‘meta_query’);
    $ meta_query [] = array (
    ‘key’ => ‘_stock_status’,
    ‘compare’ => ‘=’,
    ‘value’ => ‘instock’
    );
    $ query-> set (‘meta_query’, $ meta_query);
    }
    add_action (‘woocommerce_product_query’, ‘show_only_instock_products’);

    But this obviously slows down the load and should not occur.

    Attachments:
    You must be logged in to view attached files.
    #343729

    Hello,

    Woocommerce has an option to hide out of stock products that you can find under Woocommerce >> Products >> Inventory and try to hide out of stock products from the catalog.

    Screenshot for Clarification: https://prnt.sc/12ajozc

    As for our theme Elements we will add such options in our next theme update.

    Sorry, but we don’t have any solutions for that to add empty spaces as you required.

    Best Regards

    #343910

    Optica Valls
    Participant

    This option has always been enabled. Products out of stock are never displayed.

    Attachments:
    You must be logged in to view attached files.
    #344017

    Optica Valls
    Participant

    I have not explained well. I don’t want it to leave a blank space, I just want to avoid it. Well, never mind, I’ve already solved it in another way. I close the thread. By the way, great job with version 6.

    #344091

    Hello,

    Thanks for your Appreciation.

    Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.

    Have a wonderful day.

    Topic Closed.
    Best Regards.

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘product display failure’ is closed to new replies.