6

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.

2 Answers 2

21

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

$product = $this->getProduct();
if($product->getTypeId() === 'bundle'){
    // Something…
}
1
  • Thanks! While I had to use a different solution this definitely worked for determining if a product is a bundle.
    – Duane
    Commented Dec 2, 2010 at 15:25
20

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.