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 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', '');
    define('HTTPS_IMAGE', '');

  5. Edit the HTTPS settings to reflect your SSL URL path. For example:

    define('HTTPS_SERVER', '');
    define('HTTPS_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', '');
    define('HTTPS_CATALOG', '');
    define('HTTPS_IMAGE', '');

  4. Edit the HTTPS settings to reflect your SSL URL path. For example:

    define('HTTPS_SERVER', '');
    define('HTTPS_CATALOG', '');
    define('HTTPS_IMAGE', '');

  5. Save changes and close the config.php file

Now, anytime you login to your dashboard or a visitor purchases a product it will force the SSL for security purposes. If you need further assistance please feel free to ask a question on our support center.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-04-23 3:07 am


Thank you for sharing the detailed steps.

However, ever since my host has installed SSL on the server, except for home page no images are loading on the website..none on category page and none on product page.


Furthermore, when i followed your instructions to enable SSL on the website, on checkout page and in admin CSS & JS do not load and no images are getting loaded on the webpage!


What could be the problem here?? 

8,050 Points
2014-04-23 8:11 am
There could be multiple reasons as to why you are seeing this. Could you provide the URL where you are seeing this to investigate?
n/a Points
2014-07-10 7:09 pm

Thank you soooo much for posting this information... I broke my website several times and had to restore it whilst trying to get ssl up and running...  you're my hero !

n/a Points
2014-07-14 10:32 am

Thanks for this!

I have a problem though.  The homepage and non of the category or product pages are pointing to HTTPS, just a few other pages such as account, logic, etc are working.

8,250 Points
2014-07-14 11:06 am
Hello Mark,

Thank you for your question. After enabling your SSL in the 3 locations, have you tried clearing your browser cache, or testing on a different computer?

If you have any further questions, feel free to post them below.
Thank you,

n/a Points
2014-08-02 1:40 pm

Hi dear, 

I followed all the instruction above but my store front is not pointing to https only my website admin area is pointing to https.

my website is  please check and help me.

16,652 Points
2014-08-04 10:20 am
Hello Ashish,

I checked and your site displays fine using the https version. This article describes how to enable it, which it appears you did. It does not, however, force https when the user arrives on the site.

Kindest Regards,
Scott M

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

7 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!