Question

How do you tell if a product page is set up as a bundle in Magento 1.4? I can't find a way to do it.

Was it helpful?

Solution

this code should work in your product page (catalog/product/view.phtml):

$product = $this->getProduct();
if($product->getTypeId() === 'bundle'){
    // Something…
}

OTHER TIPS

if ($_product->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE) { echo 'Bundled'; }

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top