How Do You Get The Store Secure URL in Magento?
Tag : forms , By : Star Gryphon
Date : March 29 2020, 07:55 AM
it helps some times I have a form in Magento that is displayed over the insecure URL (http) but I need it to submit to the secure URL (https). , Have you tried this? Mage::getUrl('',array('_secure'=>true))
Mage::getUrl('customer/account/login',array('_secure'=>true))
Mage::getUrl('module/controller/action',array('_secure'=>true))
|
Can 2nd Magento store (multistore) just use a directory under 1st stores /app and /skin for design?
Date : March 29 2020, 07:55 AM
hop of those help? It depends on if your theme nameofskin is falling back to default/default theme. If not then just create your own package. /app/design/frontend/default/nameofskin --> /app/design/frontend/your-package/default
/skin/frontend/default/nameofskin --> /skin/frontend/your-package/default
/app/design/frontend/your-package/second-theme
|
Skin url, Base url in product description in magento
Date : March 29 2020, 07:55 AM
I hope this helps you . Base URL in description field: This is Some Link.
|
Magento upload image to skin directory instead of media
Date : March 29 2020, 07:55 AM
|
How to get Magento 2 secure base URL?
Date : March 29 2020, 07:55 AM
To fix the issue you can do Your code is correct, just pass the second parameter boolean true with getBaseUrl() method, by default its null, use below code like : $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$storeManager = $objectManager->get('\Magento\Store\Model\StoreManagerInterface');
echo $baseurl = $storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_WEB);
echo $secureBaseUrl = $storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_WEB,true);
|