Magento: How to effectively get the website ID

To get the website ID in Magento:
Mage::app()->getStore(true)->getWebsite()->getId()

Comments

Popular posts from this blog

Magento: can't login to admin panel, can't add product to cart

Magento: How to fix "The requested URL /index.php was not found on this server" error