$product = Mage::getModel('catalog/product')->loadByAttribute('sku', 'ABC123'); $taxClassId = $product->getTaxClassId();
load($_product->getId()); $taxClassId = $product->getTaxClassId(); echo "Tax class ID: " . $taxClassId; ?>Package library: The Mage_Catalog_Model_Product class is a part of the core Magento library, in the module named 'Catalog'.