0

This Table ( inventory_source_item ) is Empty and which all my product show out of stock, Can anyone, please help me solve this issue

enter image description here

  • Let me know as per your requirement whether you want to migrate catalog data? – Nagaraju K Nov 1 '19 at 6:55
  • Thank you for reply my error is solve – Dinesh Thakur Nov 1 '19 at 7:04
  • let me know what is the issue plz – Nagaraju K Nov 1 '19 at 7:07
  • (inventory_source_item) this table is empty after migration and show all my products is out of stock – Dinesh Thakur Nov 1 '19 at 7:15
  • You can import CSV with stock status to resolve this issue. – anonymous Nov 1 '19 at 8:22
0

This query will solve the problem:

insert into inventory_source_item (source_code, sku, quantity, status) select 'default', sku, qty, stock_status from (cataloginventory_stock_status as lg join catalog_product_entity as prd on((lg.product_id = prd.entity_id)))

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.