• Resolved taised

    (@taised)


    I have made a plugin for my woocommerce that automatically imports data for my suppliers and store them in custom metadata to specific products. I save information like supplier stock, supplier next availabiliy date and quantity.

    So for example i could have a product that has internal stock 0 but maybe i have 10 of them available at the supplier. I would also like that for some of those items to keep backorder at no, but when i try to save a product with backorder no that has 0 quantity in stock it automatically become outofstock and so it’s excluded from searches and purchases! How can add a filter or something like this to block the automatic features that put a product outofstock when some custom metadata have a specific value?

    A similar thing has to be done in search results, because it seems that articles with backorders no and quantity 0 are excluded from search results, even if they have stockstatus to instock.

    Can someone help me in this case?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @taised,

    You can change the out of stock settings so that out of stock products aren’t hidden. Would that help this situation for you?

    If you want to try that, go to WooCommerce > Settings > Products > Inventory. Uncheck the “out of stock visibility” box.

    hide out of stock

    That should let products that are “out of stock” still appear in the shop. See if that works for you here. If not, then you may need some custom development to construct this.

    Let me know if we can help out.

    Thread Starter taised

    (@taised)

    Thanks for the answer, but it will not solve the issue, not as itself at least. In this case i’d get in search results all the products, also those that are really out of stock.

    Then i should add a filter that excludes from search result those that are out of stock and have no supplier stock. Is this easier?

    Hi @taised,

    Thanks for getting back with me. In this situation, it looks like you’ll end up needing some custom development to make this happen. There are freelance developers available at https://woocommerce.com/codeable/ who could create a search like this for you. I would suggest reaching out to one of them for further help.

    Take care

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom backorder and outofstock behaviour’ is closed to new replies.