Magento-Checkout页面未加载用于目录搜索的https URL [英] Magento - Checkout page not loading https URL for catalogsearch

查看:95
本文介绍了Magento-Checkout页面未加载用于目录搜索的https URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚建立了一个Magento商店,并且一切正常,除了目录搜索URL中的问题.

I have just set up a Magento store and eveything is working fine, except for a problem in the catalog search URL.

当我转到结帐页面时,除目录搜索URL之外,所有内容均已加载到HTTPS中,这使chrome发出警告,指出页面中包含混合内容.当我检查源代码时,它说:

When I go to the checkout page, everything is loaded in HTTPS, except for the catalog search URL, which makes chrome give a warning saying that there's mixed content in the page. When I check the source code, it says:

<form id="search_mini_form" action="http://XXXX/catalogsearch/result/" method="get">

但是,只有在用户未登录(或首次访问)时,才会发生这种情况.用户登录后,URL已正确加载:

But that only happens when the user is not logged in (or a first time customer). Once the user is logged in, the URL is loaded properly:

<form id="search_mini_form" action="https://XXXX/catalogsearch/result/" method="get">

关于为什么会发生这种情况的任何想法?

Any idea on why this could be happening?

谢谢!

推荐答案

我知道这不是完整的解决方案,而且我也不知道为什么这也在我的商店中发生-但是会打开一个临时补丁":

I know it's not the complete solution, and I have no idea why this is happening also on my store - but a temporary "patch" would be to open:

app/design/frontend/fogento/default/template/catalogsearch/form.mini.phtml

并手动修改form元素的第一行以使用包括https在内的安全网址.

and manually modify the first line of the form element to use the secure url including https.

例如:

<form id="search_mini_form" action="https://www.yoursite.com/catalogsearch/result/" method="get">

这将为您提供镀铬的绿色地址栏.

This will give you the green address bar in chrome.

这篇关于Magento-Checkout页面未加载用于目录搜索的https URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆