I am looking at a section of code that uses this:
if ($_item->getProduct()->getTypeId() === Mage_Catalog_Model_Product_Type_Configurable::TYPE_CODE)
to determine whether a product is configurable. I am now wanting to alter that to detect whether the product is a bundle - but it turns out, there is no Mage_Catalog_Model_Product_Type_Bundle
. Nor is there a Mage_Checkout_Block_Cart_Item_Renderer_Bundle
. In fact, I can't see to find any dedicated bundle classes, anywhere - it's like they don't exist!
What is the reason for this? How are developers supposed to deal with bundled products, without methods like getChildrenIds or TYPE_CODE? Are just supposed to be hardcoding things?