Get product type from product SKU

Tweet, share & co

tweet fb share g+ share

Tags


Description

Get product type from product SKU

Code

$product = Mage::getModel('catalog/product')->loadByAttribute('sku',$product_sku);
$productType = $product->getTypeId();