We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.13.4.8. Setting up HTTPS in OpenCart

To do basic setup for OpenCart to work over HTTPS:

  1. Check the presence of an installed SSL certificate in SSL settings... If the certificate is missing, install his.
  2. Edit two config files:
    1. In file config.phphosted in root directory site, find the line with the parameter HTTPS_SERVER:
      // HTTPS
      define('HTTPS_SERVER', 'http://example.com/');

      Replace the HTTP address specified in it with HTTPS so that it looks like this:

      // HTTPS
      define('HTTPS_SERVER', 'https://example.com/');
    2. In file config.phpin the catalog admin, find the lines with parameters HTTPS_SERVER and HTTPS_CATALOG:
      // HTTPS
      define('HTTPS_SERVER', 'http://example.com/admin/');
      define('HTTPS_CATALOG', 'http://example.com/');

      Replace the HTTP addresses listed in them with HTTPS, so that in the end they look like this:

      // HTTPS
      define('HTTPS_SERVER', 'https://example.com/admin/');
      define('HTTPS_CATALOG', 'https://example.com/');
  3. Enable SSL support in the admin panel of the site itself:
    1. Openup Adminpanel site.
    2. Go to the section "System → Settings» («System → Settings»).
    3. To the right of the store name, click “Edit» («Edit»).
    4. Switch to the "Server» («Server»).
    5. Opposite "Using SSL» («Use SSL") Select"Yes» («Yes»).
    6. Save changes by clicking "Save» («Save») In the upper right corner of the page.
  4. Turnon redirect to HTTPS.
  5. Check the site is working.

In most cases, the described actions are enough for the site to work over HTTPS.