Hi,
I have a ssl certificate already on my server, and it was working when I had a Drupal and Uberacart installed.
I was wondering what I have to do to get it to work with open cart? Do I need just need to list the pages in .htaccess? If so, is there a list of recommended pages to protect?
Is there anything else to do before turning on the 'Use SSL' setting, like a configure file somewhere???
Cheers
Gavin.
I have a ssl certificate already on my server, and it was working when I had a Drupal and Uberacart installed.
I was wondering what I have to do to get it to work with open cart? Do I need just need to list the pages in .htaccess? If so, is there a list of recommended pages to protect?
Is there anything else to do before turning on the 'Use SSL' setting, like a configure file somewhere???
Cheers
Gavin.
Anyone? Surely there are people that have opencart protected by SSL..........
I'm surprised there is no doc on it on the wiki either, as a ssl cert is a basic need for a shop.
The issue is that I have come from Drupal, and they have a module where you just list the pages you want protected and it does it for you. For opencart, I need to know how to do it myself.
Anyone?
I'm surprised there is no doc on it on the wiki either, as a ssl cert is a basic need for a shop.
The issue is that I have come from Drupal, and they have a module where you just list the pages you want protected and it does it for you. For opencart, I need to know how to do it myself.
Anyone?
hmmmmm, I think I have it sorted. It's in the config.php file in the root folder.
I've also made changes to the config.php in the admin folder, but I now don't see images on the products in the admin area..... Can any one shed any light on that?
I've also made changes to the config.php in the admin folder, but I now don't see images on the products in the admin area..... Can any one shed any light on that?
On a similar issue, I am about to try ssl for the first time on opencart.
If I switch to ssl, but get the info wrong, will the admin then be inaccessible for me to switch the ssl back off again?
I am going to be using a shared certificate that I get free from my host so it will be a bit more complicated than usual. Not the best but it will do for now and at least it is free :-)
However, can I switch the ssl off again afterwards?
Thanks for anyone that can help.
Paul.
If I switch to ssl, but get the info wrong, will the admin then be inaccessible for me to switch the ssl back off again?
I am going to be using a shared certificate that I get free from my host so it will be a bit more complicated than usual. Not the best but it will do for now and at least it is free :-)
However, can I switch the ssl off again afterwards?
Thanks for anyone that can help.
Paul.
Hi again,
Just to update that I updated the config file with the https settings, and switched it on and all seems to be working fine.
The reason I asked was that I remember with cubecart once I got the settings wrong (missed a / off the end of one of the settings) and I was totally locked out, could not access admin and could not reset the ssl switch. In the end I was saved from having to reinstall by a user with some php code that switched off the ssl. Although it was a lot of hassle.
Just thought I would let people know,
Paul.
PS Sorry gavin m for hijacking your topic a bit - although I could feel the brushweeds blowing through!
Just to update that I updated the config file with the https settings, and switched it on and all seems to be working fine.

The reason I asked was that I remember with cubecart once I got the settings wrong (missed a / off the end of one of the settings) and I was totally locked out, could not access admin and could not reset the ssl switch. In the end I was saved from having to reinstall by a user with some php code that switched off the ssl. Although it was a lot of hassle.
Just thought I would let people know,
Paul.
PS Sorry gavin m for hijacking your topic a bit - although I could feel the brushweeds blowing through!

I'm still not seeing the images in the admin pages for the products. They show on the store, so thats ok, but it's a little annoying they don't show in the admin area too.
Any ideas?
OK, os I have noticed the location for the image is wrong.
When SSL is turned on, the location is:
https://www.mysite.co.uk/cache/307-100x100.jpg
But if I turn SSL off, the lcoation is
http://www.mysite.co.uk/image/cache/307-100x100.jpg
Any idea where I can make the change to ensure the locations are right when SSL is turned on?
When SSL is turned on, the location is:
https://www.mysite.co.uk/cache/307-100x100.jpg
But if I turn SSL off, the lcoation is
http://www.mysite.co.uk/image/cache/307-100x100.jpg
Any idea where I can make the change to ensure the locations are right when SSL is turned on?
What do you have in your config file? Make sure you fill in the HTTPS fields.
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://localhost/octemplate129/');
define('HTTP_IMAGE', 'http://localhost/octemplate129/image/');
// HTTPS
define('HTTPS_SERVER', '');
define('HTTPS_IMAGE', '');
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
Mine says:
Does that look right????
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://www.company.co.uk/');
define('HTTP_IMAGE', 'http://www.company.co.uk/image/');
// HTTPS
define('HTTPS_SERVER', 'https://www.company.co.uk/');
define('HTTPS_IMAGE', 'https://www.company.co.uk/image/');
readyman wrote:What do you have in your config file? Make sure you fill in the HTTPS fields.Code: Select all
// HTTP define('HTTP_SERVER', 'http://localhost/octemplate129/'); define('HTTP_IMAGE', 'http://localhost/octemplate129/image/'); // HTTPS define('HTTPS_SERVER', ''); define('HTTPS_IMAGE', '');
I'm having this problem and have checked my config settings, still don't understand what's wrong. I can access my site at http://___.com and all looks fine, when I go to https://___.com everything BUT the images (products and my logo.png are there).
From my config file:
When I view source on my live HTTP site, Line 23 for the logo.png reads <img src="http://___.com/image/logo.png">, but the same line viewed from https://___.com reads only <img src="logo.png"> with no URL prefix, but I've definitely got it in my config.
What's wrong?
From my config file:
Code: Select all
<?php
// HTTP
define('HTTP_SERVER', 'http://____.com/admin/');
define('HTTP_CATALOG', 'http://____.com/');
define('HTTP_IMAGE', 'http://____.com/image/');
// HTTPS
define('HTTPS_SERVER', 'https://____.com/admin/');
define('HTTPS_IMAGE', 'https://____.com/image/');
What's wrong?
Hi
I had same problem. After updating config file with below details everything works like charm.
// HTTP
define('HTTP_SERVER', 'http://shop.XXXX.com/');
define('HTTP_IMAGE', 'http://shop.XXXX.com/image/');
define('HTTP_CATALOG', 'http://shop.XXXX.com/');
// HTTPS
define('HTTPS_SERVER', 'https://shop.XXXX.com/');
define('HTTPS_IMAGE', 'https://shop.XXXX.com/image/');
define('HTTPS_CATALOG', 'https://shop.XXXX.com/');
Hope this helps..
Regards
Narayana GR
I had same problem. After updating config file with below details everything works like charm.
// HTTP
define('HTTP_SERVER', 'http://shop.XXXX.com/');
define('HTTP_IMAGE', 'http://shop.XXXX.com/image/');
define('HTTP_CATALOG', 'http://shop.XXXX.com/');
// HTTPS
define('HTTPS_SERVER', 'https://shop.XXXX.com/');
define('HTTPS_IMAGE', 'https://shop.XXXX.com/image/');
define('HTTPS_CATALOG', 'https://shop.XXXX.com/');
Hope this helps..
Regards
Narayana GR
Ive also had this problem... Been tring to work out why the ssl on my site was only partially encripted. No facebook, no twitter..
I was using google fonts!!
2 Hours it's taken me! Maybe this may remind anyone else that is looking through this thread. Cheers
I was using google fonts!!
2 Hours it's taken me! Maybe this may remind anyone else that is looking through this thread. Cheers
Who is online
Users browsing this forum: Majestic-12 [Bot] and 81 guests