getStore()->getStoreId(); echo "The store ID is " . $store_id; ?>
getStore('default')->getStoreId(); echo "The store ID of the default store view is " . $store_id; ?>This example retrieves and displays the store ID of the default store view. This code is part of the Magento package library. The Varien_Object class is a core class of Magento, and is part of the Varien package.