Set Default Stock Inventory Backorder Setting in Woo
This code sets your single product > inventory > stock management setting to allow by default. On your inventory tab, it does 3 things :
Sets the Stock Management checkbox to yes enabling you to track stock quantity for this product. Sets the Allow Backorders radio button to “Allow” by default on all single product pages. Enables the default settings to be changed per product ( use 2nd snippet ).
Here’s the result, click to enlarge :
Here’s a demo video showing how the 1st snippet works :
[embedded content]
There’s 2 code snippets in this tutorial
This is the first part of the article
Set Default Stock Inventory Backorder Setting in Woo
