我的 Magento 结账时遇到问题,浏览器报告页面未完全加密。我一看,发现其中一张图片使用的是 http://
这是我用来显示图像的代码:
getSkinUrl('images/search_button.png') ?>作为临时解决方案,我对图像的完整路径进行了硬编码,即: https://mysite.com/skin/frontend/default/mytheme/images/search_button.png
有谁知道如何动态调用图像但让它在结账和其他安全页面上使用 https 吗?
最佳答案
这应该通过使用“_secure”参数来解决。
$this->getSkinUrl('images/search_button.png', array('_secure' => true));
关于Magento Checkout - 不安全的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3458155/