Hey there,
I need that if I use a particular term of an attribute in the variations of a product, the stock of that variation is always equal to 1, even if an order is placed.
I understand that you want to have the stock level of a product variation always be 1 if a specific term is used as the attribute.
It’s not possible to do this using the standard WooCommerce functionality. If manage stock is set at a product variation level and a quantity of stock is entered, that value will always be reduced when an order is placed for it.
If you have Manage stock
unchecked in the variation data and instead leave the Stock Status
as In stock
then the product will always be available for purchase.
Alternatively, you could have some custom code written to prevent the stock level from being reduced when that specific term is used for a variation. For advice around this, I would recommend reaching out to one of our vetted developers on our Customisations page.
I hope that helps!
Kind regards