2

I am testing M2 on a VM hosted on my local machine.

I have successfully imported products using a CSV file. The products appear in the correct categories in the admin area. However, they do not appear on the front end. I flushed the cache and they still didn't appear. I then went in to a couple of products and saved them then flushed the cache and those products appeared.

How do I get my recently imported products to show on the front end without having to save each one and flush the cache?

2

Use following command for reindexing:

php bin/magento indexer:reindex
1

Please check the

Catalog -> Manage Product -> Click on Any Product

Then check the

In the general tab -> Mark status to Enable In Inventory Tab -> Mark the Stock Availability to In Stock Quantity to any positive number

Hope it will work.

0

This is usual behavior in case your import file was missing column "_product_websites" with website name or 'base'. So opening and simply saving the product without any changes usually helps make them visible.

To attach your existing the products to a website go to your Magento 2 back-end:

1) Products ->Catalog

2) Select products you need to update (or select all)

3)) Actions - Update attribute - Submit

4) Chose tab Websites and check the box to apply website to selected products.

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.