Magento: It says 'The product can not be found' or 'No products found' when searching or checking out
Issue
You cannot search for any products, even when the products do exist in categories. Besides, when you want to check out your shopping cart, you get an error message 'The products cannot be found' and fail to check out.
Cause
This issue may happen because of the mismatch between the website URL and the store view you use to integrate your app with your website. If you use a URL of one store view but choose another store view to integrate, the integration will still be done successfully but later you will catch the above issues.
Solution
Please be clear about the base URL of each store view of your website. When integrating your app, make sure you select the right URL and store view.
Step 1: In Magento Admin, go to Stores > Configuration. Under General > Web, expand the Base URLs section and check the base URL of each store view.