Jump to content

Changing CSS and JS files path to get https prefix


koolmind

Recommended Posts

Prestashop ver 1.4.8.2

 

Hi there,
if I enable ssl protocol from Prestashop Back Office, all pages using https suddenly crash!
 
From code inspector I see that several files (css and js files) are loaded by http protocol.
Is there a way to force the the https prefix for them?
 
in classes\FrontController.php there's a beautiful function that seems able to do the trick... but I don't know how!
 
public function setMedia()
{
  global $cookie;
  Tools::addCSS(_THEME_CSS_DIR_.'global.css', 'all');

.....

}

 

My settings.inc.php reports this line... but as you can see, there's no protocol for that.

define('__PS_BASE_URI__', '/itart/store/');

Edited by koolmind (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...