I have some doubts regarding product rendering.When we add a product from admin how it is displayed from frontend. What Magento does to make their product visible and distinguishable by their type like simple product,configurable. Thanks in advance
Product type is distinguished by type_id which is field or attribute of products. If you
echo $_product->getTyeId() then you will get the product type(simple, configurable, grouped etc).
Products are visible in frontend based on few things.
Visibility should be catalog, search or catalog search
Status should be Enabled
a) if type is configurable, grouped, bundle then it should be in stock
b) if simple then in stock with quantity greater than 0(if manage stock set to yes)
- There is also an option which enables to show out of stock products in frontend.