Custom backorder and outofstock behaviour
-
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
The topic ‘Custom backorder and outofstock behaviour’ is closed to new replies.