Hi... guys today i am sharing with you a little useful code for checking is the current store is running on secure url or not .
You can check this by just this simple line of code :
[php]$isSecure = Mage::app()->getStore()->isCurrentlySecure();[/php]
And you can get the secure url using the following code :
[php]Mage::getStoreConfig(Mage_Core_Model_Store::XML_PATH_SECURE_BASE_URL)[/php]
No comments:
Post a Comment