zdeneklogin Posted September 16, 2016 Share Posted September 16, 2016 I set up ssl certificate and have a padlock on every page (front office, back office, cart,..) except categories. There is only the grey icon. Google Chrome console shows (an example): Mixed Content: The page at 'https://mydomain.com/category/' was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http://mydomain.com/category/?categories_rewrite=&noredirect=1'. This endpoint should be made available over a secure connection. I found a similar issue to mine in another forum. There is probably problem with produtct-sort.tpl (solution there did not work for my prestashop version) Could you help me how to fix a code in that .tpl ? Prestashop 1.6.1.2 Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted September 16, 2016 Share Posted September 16, 2016 can you share the site's url? Link to comment Share on other sites More sharing options...
zdeneklogin Posted September 16, 2016 Author Share Posted September 16, 2016 (edited) HP - vasekravaty.cz Category - vasekravaty.cz/panske-kravaty/ Edited September 16, 2016 by zdeneklogin (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted September 17, 2016 Share Posted September 17, 2016 The "productsSortForm" is creating the issue. As very raw trick, in product.sort.tpl use thisaction="{$request|replace:'http:':'https:'|escape:'html':'UTF-8'}"Instead of the one without replace. It should do the trick Link to comment Share on other sites More sharing options...
zdeneklogin Posted September 19, 2016 Author Share Posted September 19, 2016 (edited) SOLVEDThanks NemoPS."ProductSortForm" wasnt the issue. But you gave me clue. I found all url address start with http in view-source (chrome) and name of .tpl which did it. Problematic .tpl were pagination.tpl and nbr-product-page.tpl. So I put your code |replace:'http:':'https:' like this: pagination.tpl: <form class="showall" action="{if !is_array($requestNb)}{$requestNb|replace:'http:':'https:'}{else}{$requestNb.requestUrl|replace:'http:':'https:'}{/if}" method="get"> and nbr-product-page.tpl: <form action="{if !is_array($requestNb)}{$requestNb|replace:'http:':'https:'|escape:'html':'UTF-8'}{else}{$requestNb.requestUrl|replace:'http:':'https:'|escape:'html':'UTF-8'}{/if}" method="get" class="nbrItemPage"> it works now and SSL green padlock is on every page of my www Thanks Edited September 19, 2016 by zdeneklogin (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now