Check if Magento Store Codes Are Enabled
As a developer, sometimes it is important to check if store code urls are enabled. Store codes are well known for breaking extensions due to the URL format. If you need to check if store code urls are enabled you could simply use the following. <?php $storeCodeEnabled = Mage::getStoreConfig(‘web/url/use_store’); if($storeCodeEnabled): // Do something here endif;…
Details