/ Published in: PHP
use the magento developer IP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $allowedIps = Mage::getStoreConfig('dev/restrict/allow_ips', $storeId); $remoteAddr = Mage::helper('core/http')->getRemoteAddr(); ?> <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('allert-shop-nicht-produktiv')->toHtml(); ?> <?php } else { ?> <a class="allertlink"><span>Besucherschutz</span></a> <?php } ?> <?php } ?>
URL: http://stackoverflow.com/questions/6198589/how-to-get-the-magento-developer-ip