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/admin/');
    define('HTTPS_CATALOG', '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/admin/');
    define('HTTPS_CATALOG', 'https://opencart.inmotiontesting.com/');
    define('HTTPS_IMAGE', 'https://opencart.inmotiontesting.com/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
Name

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

Like this Article?

Comments

Post a comment
n/a Points
2014-04-23 3:07 am

Hello,

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?? 

Staff
7,372 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.

Staff
7,266 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,

-John-Paul

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

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

News / Announcements

WordPress wp-login.php brute force attack
Updated 2014-07-17 06:43 pm EST
Hits: 200938

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

Need more Help?

Search

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: support@InMotionHosting.com
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!