cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Static Block to homepage

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Adding Static Block to homepage

Hello,

 

I'm trying to add a static block displaying contact information to my homepage for 4 different Store Views.

 

I have inserted the following code to "home.phtml":

<?php echo $storeId = Mage::app()->getStore()->getStoreId();
 if($storeId == '14')
{ echo $this->getLayout()->createBlock('cms/block')->setBlockId('home-center-contact')->toHtml();
} ?>
<?php echo $storeId = Mage::app()->getStore()->getStoreId();
 if($storeId == '15')
{ echo $this->getLayout()->createBlock('cms/block')->setBlockId('home-center-contact')->toHtml();
} ?>
<?php echo $storeId = Mage::app()->getStore()->getStoreId();
 if($storeId == '16')
{ echo $this->getLayout()->createBlock('cms/block')->setBlockId('home-center-contact')->toHtml();
} ?>
<?php echo $storeId = Mage::app()->getStore()->getStoreId();
 if($storeId == '18')
{ echo $this->getLayout()->createBlock('cms/block')->setBlockId('home-center-contact')->toHtml();
} ?>

However, at https://beaconbingo.kellyseye.com/ the only content displaying is the Store ID "14", at https://cashino.kellyseye.com/ I can see the Static Block and the Store ID, at https://tanexpress.kellyseye.com/ and https://merkurengineering.kellyseye.com/ I can see the Static Block surrounded by multiple Store ID's.

 

Why is this?

 

Capture.PNG Capture2.PNG Capture3.PNG Capture4.PNG