Thursday, 3 October 2013

Magento: How to effectively get the website ID

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

No comments:

Post a Comment