2015-07-21 66 views
1

将我的Magento网站更新到https://后,目录搜索功能不再有效。目录搜索Magento - 不能正常工作https/ssl

我想这是因为当提交搜索查询时,表单正在http中发送它的请求。

如何确保搜索表单使用HTTPS发布其信息?

+0

同一问题在这里:http://stackoverflow.com/questions/31101751/magento-checkout-page-not-loading-https-url-for-catalogsearch – zhartaunik

回答

1

正如我更详细地调试此问题。我发现在catalogsearch/form.mini.phtml模板表单中从搜索帮助器中提取URL。

$this->helper('catalogsearch')->getResultUrl(); 

下面是函数的定义:

public function getResultUrl($query = null) 
{ 
    return $this->_getUrl('catalogsearch/result', array(
     '_query' => array(self::QUERY_VAR_NAME => $query), 
     '_secure' => Mage::app()->getFrontController()->getRequest()->isSecure() 
    )); 
} 

因此,将安全和不安全网页上工作。

您必须检查Form提交的URL是如何在当前主题catalogsearch/form.mini.phtml模板文件中提取的。

+0

在视觉上我有相同的,但它不起作用 – zhartaunik