How to enable SSL connection in OpenCart

Posted: September 20, 2012 in Forums, PHP

You should make sure you have a SSL certificate installed for your domain. If you do not have a dedicated SSL installed, this configuration will cause issues with accessing your OpenCart dashboard and the login/checkout pages of your store. Most payment processors such as Authorize.net will require you to purchase a SSL. You may want to purchase and install one prior to fully setting up your shopping cart.

Please see our tutorials if you need more information on what a SSL is and how to purchase one. Please keep in mind OpenCart does not support the use of the shared SSL certificate.

To enable SSL in OpenCart, there are three areas to edit: The System Settings in the OpenCart Dashboard, the config.php file in the directory where you installed OpenCart, and the config.php file in your OpenCart Admin folder.

Enabling SSL in the OpenCart Dashboard
  1. Log into the OpenCart Dashboard
  2. Go to System > Settings
  3. Click on the Server tab
  4. Check the radio button to use SSL
Enabling SSL in the OpenCart directory config.php file
  1. Log into cPanel and go to File Manager
  2. Navigate to your OpenCart installation directory
  3. Open (Edit or Code Editor) the configuration file (config.php)
  4. Look for the lines below // HTTPS that looks similar to this: 

    define(‘HTTPS_SERVER’, ‘http://opencart.inmotiontesting.com/’);
    define(‘HTTPS_IMAGE’, ‘http://opencart.inmotiontesting.com/image/’);

  5. Edit the HTTPS settings to reflect your SSL URL path. For example:define(‘HTTPS_SERVER’, ‘https://opencart.inmotiontesting.com/’);
    define(‘HTTPS_IMAGE’, ‘https://opencart.inmotiontesting.com/image/’);
  6. Save changes and close the config.php file
Enabling SSL in the OpenCart Admin folder config.php file
  1. Go to the “Admin” folder
  2. Open (Edit or Code Editor) the configuration file (config.php)
  3. Look for the lines below // HTTPS that looks similar to this: 

    define(‘HTTPS_SERVER’, ‘http://opencart.inmotiontesting.com/’);
    define(‘HTTPS_IMAGE’, ‘http://opencart.inmotiontesting.com/image/’);

  4. Edit the HTTPS settings to reflect your SSL URL path. For example:define(‘HTTPS_SERVER’, ‘https://opencart.inmotiontesting.com/’);
    define(‘HTTPS_IMAGE’, ‘https://opencart.inmotiontesting.com/image/’);
  5. Save changes and close the config.php file
Advertisements
Comments
  1. My relatives all the time say that I am killing my time here
    at web, except I know I am getting know-how daily by reading
    thes good articles.

  2. Hey there just wanted to give you a quick heads up. The
    words in your content seem to be running off the
    screen in Firefox. I’m not sure if this is a formatting issue or something to do with internet browser compatibility but I figured I’d post to let you know.
    The style and design look great though! Hope you get the
    issue solved soon. Cheers

  3. Bobbie says:

    Aw, this was an incredibly good post. Spending some time and actual effort to produce
    a great article… but what can I say… I put things off a lot and don’t manage to get nearly anything done.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s