Here is a quick reference for you, if you run Magento under Multi-language, Multi-Currency or Multi-Domain (Multi-Website).
Sometime you need pick up the Store ID do some (IF…ELSE…) work. Here is the code:
1
| <?php $store_id = $this->helper('core')->getStoreId(); echo $store_id; ?> |