Use the following code to get the type of a Magento product:
// configurable, simple, ...
$type = $product->getTypeId();
Getting the type of a product
You want or need help implementing this solution? Maybe you did not find what you were looking for? Contact me and I will assist you with whatever Magento problem troubles you!