roeni1` Posted January 30, 2015 Share Posted January 30, 2015 Hi Guys, My shop (https://speelgoedonlinekopen.nl) is secured. Complete shop part is secure. But When I look not all is secured by httpS. I found that the base_url in the php is not set properly I think. The base_url is build up from the complete domain and somewhere it pasts http in from instead of https. I search all files and replaced all http://speelgoedonlinekopen.com into https://speelgoedonlinekopen.com Fronpage is complete secure but a category for example not. script that is not correct: } if(!isMobile()) { if (typeof CS == 'undefined') CS = {}; CS.QuickView = { BASE_URL : 'http://www.speelgoedonlinekopen.com/' QS_FRM_TYPE : 0, QS_FRM_WIDTH : 60, QS_FRM_HEIGHT : 90, Who can assist me? Link to comment Share on other sites More sharing options...
bellini13 Posted January 30, 2015 Share Posted January 30, 2015 It appears to be a module called 'csquickview'. This is not a base module included with Prestashop, perhaps it was included with your theme. Look for the module in the modules/csquickview folder, and then search for any .tpl files in there that would be displaying the code you are seeing. Link to comment Share on other sites More sharing options...
roeni1` Posted January 30, 2015 Author Share Posted January 30, 2015 The code I see is: if (typeof CS == 'undefined') CS = {}; CS.QuickView = { BASE_URL : '{$base_dir}', QS_FRM_TYPE : {$resize_type}, QS_FRM_WIDTH : {$resize_width}, QS_FRM_HEIGHT : {$resize_height}, QS_IMG: '{$base_dir}modules/csquickview/images/cs_quickview_preview.png' Now I am looking where the $base_dir is declared... Link to comment Share on other sites More sharing options...
roeni1` Posted January 30, 2015 Author Share Posted January 30, 2015 (edited) Found this in utils.php: if($path!="" && $path[strlen($path)-1]!="/") $path.="/"; $base_dir=$path.substr_replace($targetPath, '', 0, strlen($current_path)); Not sure if this is what I am looking for and this: $path = $current_path.str_replace("\0", "", $_POST['path']); Edited January 30, 2015 by roeni1` (see edit history) Link to comment Share on other sites More sharing options...
roeni1` Posted January 30, 2015 Author Share Posted January 30, 2015 I really need to know where in code "$base_dir" is declared. There are more modules that use that variable and in my view source they are all linking to http: instead of https: I think its a general prestashop variable Link to comment Share on other sites More sharing options...
roeni1` Posted January 30, 2015 Author Share Posted January 30, 2015 I could be wrong but that is what I see in the different files. My php is only not that good to see/find it. ... Link to comment Share on other sites More sharing options...
bellini13 Posted January 30, 2015 Share Posted January 30, 2015 It should be defined somewhere in the csquickview module. I don't have this module, so i cannot view the source code to help you 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