Cards were democratized by Google, first with Google Now app before becoming an basic component of material design system. A lot of social and e-commerce platform use cards to present a single element with multiple meta-informations and it associated actions. Google Material Design specifications describe cards this way :
Cards display content composed of different elements whose size or supported actions vary.
More about cards :
About your question
In the exemples you provided, cards seems to have only two actions, an implicit one (Taping on it = go the item page) and an explicit one "Add to wishlist".
It looks like your asking if you should use a mosaic view (or grid view) or a list view (1 line = 1 item).
This choice will mostly depends of this three points :
Are pictures more important than information ?
You wont buy a t-shirt in the same way as you buy an external storage disk, you need to emphase the picture for the first one, you need to emphase the product description for the second one.
For the first case, mosaic view or even a full width image view is the best approach, if text informations are more important, use a list view.
Do you need to preserve the size ratio of each item picture ?
Mosaic view with a masonry system will be the best.
Do you need to show a lot of items above the fold ?
Mosaic view will sole this problematic.
Whatever your choice is, the whole UI Feeling of the type of list you use will be really relative to the harmony of your item pictures.
If your designing a generalist e-commerce app, I strongly suggest you to let the user manually choose between grid, full width or list view. This way you'll cover all the cases.
Flipkart exemple :
Think about consistency
Cards work well with the notion of depth that Google introduced. If only this part of your app use cards and shadows then you should avoid cards and keep a simple list or blocks view.
Material Design: list items or cards to display a large collection of elements?
Material Design: using cards for homogeneous content instead of list