Grabbing the store code from Magento can be quite easy. The following code has always done the trick for me.
<?php echo Mage::app()->getStore()->getCode(); ?>


Grabbing the store code from Magento can be quite easy. The following code has always done the trick for me.
<?php echo Mage::app()->getStore()->getCode(); ?>
I put a lot of time into writing guides that make tech easier to understand. If you found one useful, consider buying me a coffee ☕ — it’s a small way to say thanks and it motivates me to keep sharing.