Closed jchirschy closed 3 years ago
Hi,
Yes this is not very clear. What you need to use for Out of stock threshold is
$stock->setMinimumQuantity(-10);
"minimum quantity" is the internal name of the field (min_qty).
setUseConfigBackorders
tells the system whether it should use the system's generic config value or not. Only if this field is set to false, will the product specific value be used.
Thanks @patrick-bigbridge ,
Actually, when you look at csv import file from the dashboard, there are two fields out_of_stock_qty
and allow_backorders
. Does $stock->setMinimumQuantity(-10);
set the same field as the csv out_of_stock_qty
one ?
Thanks.
Yes, the mapping can be found here:
thanks @garfix
Hello,
I'm trying to use the importer to set the
Out-of-Stock Threshold
field. Actually, I'm trying to set a negative value per product. I know there is something like :But I didn't see anything concerning this special use case. Did I miss something or could you indicate me how to accomplish this ?
By the way, what does
$stock->setUseConfigBackorders
exactly do ?Thanks in advance for you help.