Magento - update all products inventory with sql

后端 未结 4 1515
轮回少年
轮回少年 2021-01-03 16:58

I want to update the inventory of all My Magento products.

Can I do that with an only sql request?

What\'s the request if that\'s possible ?

Thanks

4条回答
  •  梦谈多话
    2021-01-03 17:20

    Something like this?

    UPDATE cataloginventory_stock_item SET qty='';

    Other useful fields in this table could be:

    • qty
    • min_qty
    • use_config_min_qty
    • is_qty_decimal
    • backorders
    • use_config_backorders
    • min_sale_qty
    • use_config_min_sale_qty
    • max_sale_qty
    • use_config_max_sale_qty
    • is_in_stock
    • low_stock_date
    • notify_stock_qty
    • use_config_notify_stock_qty
    • manage_stock
    • use_config_manage_stock
    • stock_status_changed_automatically
    • use_config_qty_increments
    • qty_increments
    • use_config_enable_qty_increments
    • enable_qty_increments

提交回复
热议问题