generalexperts Posted October 2, 2014 Share Posted October 2, 2014 (edited) 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 October 31, 2014 by generalexperts (see edit history) Link to comment Share on other sites More sharing options...
MacRoy Posted October 2, 2014 Share Posted October 2, 2014 Hi! If you go to Settings / General, you have the upper hand on a Tab (Button) that you can enable Force SSL on all pages. Have you activated it? Regards MacRoy Link to comment Share on other sites More sharing options...
generalexperts Posted October 2, 2014 Author Share Posted October 2, 2014 I am using PS 1.5.4.1. When I enable SSL there is a note that says " I need all not just authentication and quick-order... Thanks! Link to comment Share on other sites More sharing options...
bellini13 Posted October 2, 2014 Share Posted October 2, 2014 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 More sharing options...
generalexperts Posted October 2, 2014 Author Share Posted October 2, 2014 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 More sharing options...
generalexperts Posted October 3, 2014 Author Share Posted October 3, 2014 I think this will cover it for the category pages too if I can rewrite the form id to show https. Link to comment Share on other sites More sharing options...
generalexperts Posted October 6, 2014 Author Share Posted October 6, 2014 Still looking for some help on this. Thank you! Link to comment Share on other sites More sharing options...
generalexperts Posted October 13, 2014 Author Share Posted October 13, 2014 Anyone know how to change form action to produce secure link? Link to comment Share on other sites More sharing options...
taoufiqaitali Posted October 31, 2014 Share Posted October 31, 2014 you need to edit all forms by changing http to https,this will be do manually by editing tpl files in your theme and modulesfirst you will run a script to find pages that contain http,then edit one by one to change it to https 11:03 Link to comment Share on other sites More sharing options...
generalexperts Posted October 31, 2014 Author Share Posted October 31, 2014 (edited) Thank you taoufiqaitali for the response! This was solved by changing the products.tplGoing to <form id="buy_block" and replacing this part {$link->getPageLink('cart',true)|escape:'html':'UTF-8'} All pages have SSL now. Thanks! Edited October 31, 2014 by generalexperts (see edit history) Link to comment Share on other sites More sharing options...
osss Posted December 12, 2014 Share Posted December 12, 2014 (edited) How did you solve the categories SSL issue, I have removed all numbers from categories pages so I have friendly urls, any ideas? Thanks. Edited December 12, 2014 by osss (see edit history) Link to comment Share on other sites More sharing options...
magpole Posted December 24, 2014 Share Posted December 24, 2014 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 More sharing options...
Yenibosnaweb Posted January 20, 2015 Share Posted January 20, 2015 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 More sharing options...
thelaptopdude Posted January 21, 2015 Share Posted January 21, 2015 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 https://www.thelaptopdude.com/home/1244-trio-stealth-g4-8-gb-tablet.html Thanks Link to comment Share on other sites More sharing options...
dapete9799 Posted February 10, 2015 Share Posted February 10, 2015 Check here: https://www.prestashop.com/forums/topic/355246-solved-quick-search-block-module-provokes-unsecure-ssl/ Link to comment Share on other sites More sharing options...
spiridus2008 Posted April 8, 2015 Share Posted April 8, 2015 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 More sharing options...
fransjaeger Posted August 14, 2015 Share Posted August 14, 2015 I dont know if this helps, but it solved some of my problems with force ssl https://github.com/PrestaShop/PrestaShop/pull/3705 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