<?php
switch ($product->getTypeId()) {
case Mage_Catalog_Model_Product_Type::TYPE_SIMPLE:
// Do something
break;
case Mage_Catalog_Model_Product_Type::TYPE_BUNDLE:
// Do something
break;
case Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE:
// Do something
break;
case Mage_Catalog_Model_Product_Type::TYPE_GROUPED:
// Do something
break;
case Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL:
// Do something
break;
}
?>
I am a Software Developer with 6+ years of experience in software development. I have sharp skills in PHP language, Joomla, Magento, WordPress, HTML, CSS, Jquery, AJAX. Expert Magento Certified Developer (https://u.magento.com/certification/directory/dev/262179/). Love to take challenges in troubleshooting problem of software world. Familiar with web development and content management systems. I’m not a great programmer but I feel I’m a great implementer".
This is a really good tip particularly to those fresh to the blogosphere.
Simple but very accurate information… Many thanks for sharing this one.
A must read post!
This is a really good tip particularly to those fresh to the blogosphere.
Simple but very accurate information… Many thanks for sharing this one.
A must read post!