Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Getting CSS to work for admin panel with HTTPS


jcbbuller

Recommended Posts

Hi all,

 

Whenever I access the admin panel on osCommerce site when its on a secure connection (https) I keep getting the admin without the css stylesheet attached, under a insecure connection (http) it works perfectly. I am working on a local companies website that has both a httpsdoc and a httpdoc folder symlinked - with the oscommerce root folder under the httpdocs folder. In the template_top.php there is no http:// before the href for the stylesheets and 960 grid system style sheet. Any clue on how to get the css to linked to the admin panel when its under a secure connection? I have some PHP experience so if it has to do with adding some code I am pretty confortable with that. Thanks!

 

Jake

Link to comment
Share on other sites

If you "allow insecure content" does the admin then work with the .css. .js and so on

How do I allow insecure content? Do you mean when I change it from https:// to http://? The site is setup with an SSL certificate so when you access the catalog and checkout it switches to https, its just when you try to access the admin when in https that the CSS doesn't link. It's not that big of a deal, when I delete the 's' and go to http it works fine, I would just like it to work with both a secure and insecure connection.

Link to comment
Share on other sites

I am wondering if your browser does not show insecure content. If a file is being served from http and you are on https then this could (and does) happen.

 

You should look at your configure file (in admin/includes/ ) and make sure that all http:// addresses are https://

and that use ssl is "true".

Link to comment
Share on other sites

Sorry, it's working now, I think I had bad internet connection or something. It could have also been that my MAMP PRO local host server name was activated and that was what I was trying to access, and that's what was causing the problem. Either way the admin seems to be showing the CSS styles in a secure or insecure connection. Sorry for wasting your time.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...