After running these above commands, all the products are disappeared from the frontend website. I have done some R&D and found that until a source has not been assigned into the every product, then the product will not appeared in the frontend website. I have assigned a source to few products for testing purpose and run indexing in our website. After completing the indexing, these products are available in the frontend and available for purchase.
Now, the main issue is that we can not assign a source manually into each product because we have more than 1 lakh products in our website and we can not open each product and assign a source into that product and enter the quantity manually and save the product because it will take lots of time & effort to do it.
Can anyone have idea to do this in mass/bulk process so that we can assign the default source and enter the current quantity into default source OR using any CSV file OR any custom script OR any other way to assign a sources to every product and update the product quantity in mass process ???
Please share if anyone has any idea or solution for the same.