Jump to content

No padlock in categories


zdeneklogin

Recommended Posts

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

SOLVED

Thanks 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 by zdeneklogin (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...