Support » Plugin: Stock Locations for WooCommerce » data-product_variation has false is_in_stock value since update

  • Resolved conversory

    (@conversory)


    Hi and Hello!
    we have the following problem for which we would really appreciate any advice or help a lot:
    Since the last update of the SLW plugin (1.8.9), the product variants that are not in stock are still displayed in the frontend, although the “Hide out of stock items from the catalog” option is checked. Previously everything worked fine, the products that were not in stock were hidden correctly.
    You can find a current example for this e.g. here https://bikeonline.store/produkt/trek-emonda-sl-5-disc-2022/ , none of the variants larger than 54 are in stock. While troubleshooting, I noticed that the stock level is displayed correctly in the backend, but in the JSON file of the data-product_variations attribute of the cart’s variations_form, the value for is_in_stock is always true.
    Any ideas on how to fix or further debug this are very welcome. Thank you in advance!

    • This topic was modified 1 week, 4 days ago by conversory.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @conversory what I remember, in recent release a user asked me to return true even if one location has positive stock. So parent/original product comes up as an in stock item. I am open to the suggestions, kindly give me insights with a video recording or a couple of screenshots.

    Thread Starter conversory

    (@conversory)

    Hi, thank you for the super quick response and the support! Did I understand it correctly that all variants of the product are displayed in the frontend as soon as a variant is in stock? Is this as a result of the last changes? Does this override the “Hide out of stock items from the catalog” option? Is there a way to keep this functionality?

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Obviously that option can be carry forward but the logic is, if any single location has positive stock so that produce will become available. Although the visitor won’t be able to order from the low/out of stock locations but still product will be available in catalog. Please give me an example so I can understand it better. Alternatively you can use the “urgent help” option under the help tab on settings page.

    Thread Starter conversory

    (@conversory)

    A good example would be this product here:
    https://bikeonline.store/produkt/trek-emonda-sl-5-disc-2022/
    Only the variants 47, 50, 52 in quicksilver have a stock of 1 all other variants are not in stock. Previously the variants that were not in Stock (p.e. 56 or 54) were not visible in the dropdown, so you couldn’t select this option at all. Now you can select this option. The stock itself is indicated correctly and you can’t put these productvariants in the cart, which is good. But we would rather not have the out-of-stock variants displayed in the frontend at all.

    • This reply was modified 1 week, 4 days ago by conversory.
    • This reply was modified 1 week, 4 days ago by conversory.
    • This reply was modified 1 week, 4 days ago by conversory.
    Thread Starter conversory

    (@conversory)

    Hi Fahad, Have you already had a look at the example? Do you have any tips or hints how we can get the problem under control? We would like to get back to the situation where the variants that are not in stock are not displayed at all or greyed out in the frontend.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @conversory I am sure that someone asked me to bring complete data to front-end or there was a requirement to do this. Can you please use the urgent help option so I can help you better. I believe, it is still greying out the unavailable stock options but in your case I can clearly see it is available for selection.

    Thread Starter conversory

    (@conversory)

    Hi @fahadmahmood, thank you for your reply. Since I’m working on other projects with a near deadline at the moment, I unfortunately don’t have time to work on this problem right now. The urgent help option is new to me. How does this work? Are we then in a direct call? I would have to allocate some time for this beforehand. Would it be possible to use this support option in the middle of next week? It would be a suitable solution for us if we could gray out the variants that are not in stock.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @conversory lets continue on it next week, hopefully meanwhile I will get a slot to test it myself and will keep you posted about it. Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.