Jump to content

[SOLVED] Force SSL to entire site, How to change <Form action= to produce SECURE link?


generalexperts

Recommended Posts

I have forced SSL by editing the frontcontroller.php. By changing public $ssl = false; ---> public $ssl = true;

 

This made my entire site using SSL. Using chrome, the yellow padlock shows when visiting only the category and product pages. This was a problem before due to the quick search bar. But I fixed that. Is it possible to have the quick search effecting these other pages too, or is it a whole different thing?

 

Thanks!

 

Edited by generalexperts (see edit history)
Link to comment
Share on other sites

You have 3 forms on the page that have http in the action.

<form id="productsSortForm" action="http://www.domain.com/18-big-boat-blocks">

<form action="http://www.domain.com/18-big-boat-blocks" method="get" class="nbrItemPage pagination">

<form action="http://www.domain.com/18-big-boat-blocks" method="get" class="pagination">
Link to comment
Share on other sites

I was able to correct the top one by changing it to:  <form id="productsSortForm" action="{$link->getPageLink('search',true)|escape:'html':'UTF-8'}">

 

 

<form action="{if !is_array($requestNb)}{$requestNb}{else}{$requestNb.requestUrl}{/if}" method="get" class="nbrItemPage pagination">

<form action="{if !is_array($requestNb)}{$requestNb}{else}{$requestNb.requestUrl}{/if}" method="get" class="pagination">

Thanks

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 2 weeks later...

I fixed the error on computer by adding the "true" in blocksearch-top.tpl .

But don't know how to fix the mobile side.

Although, I did same thing in blocksearch-top.tpl under mobile theme.

Using: prestashop 1.4.11

           mobile theme module by prestashop

Please help

 

Thanks

Link to comment
Share on other sites

  • 4 weeks later...

I fixed the error on computer by adding the "true" in blocksearch-top.tpl .

But don't know how to fix the mobile side.

Although, I did same thing in blocksearch-top.tpl under mobile theme.

Using: prestashop 1.4.11

           mobile theme module by prestashop

Please help

 

Thanks

can you explain the steps  that how did you solved this problem. I have same problem but no solution yet...

Link to comment
Share on other sites

 

you need to edit all forms by changing http to https,

this will be do manually by editing tpl files in your theme and modules

 

first you will run a script to find pages that contain http,then edit one by one to change it to https

 

11:03   

 

Hello taoufiqaitali
 
what script do i run to find pages that contain http?
 
I really need all my pages to have that green lock
 
 
Thanks
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

I was able to correct the top one by changing it to:  <form id="productsSortForm" action="{$link->getPageLink('search',true)|escape:'html':'UTF-8'}">

<form action="{if !is_array($requestNb)}{$requestNb}{else}{$requestNb.requestUrl}{/if}" method="get" class="nbrItemPage pagination">

<form action="{if !is_array($requestNb)}{$requestNb}{else}{$requestNb.requestUrl}{/if}" method="get" class="pagination">

Thanks

For me it worked with this change : 

 

<form action="{if !is_array('$requestNb', true)}{$requestNb}{else}{$requestNb.requestUrl}{/if}" method="get" class="pagination">

 

Just adding one "true"  and some quotes  '',

 

Hope it will help you !

Link to comment
Share on other sites

  • 4 months later...

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...