Post by aleksandrostrovsqi » Thu Apr 06, 2023 5:28 am

There is a certificate, in the store settings in OpenCart, I selected use ssl certificate. But by default it goes to the site, without protection climatecom.ru . And on the protected https://climatecom.ru scripts and transitions don't work.
Ajax requests, through which the addition of goods to the cart is implemented, do not work in scripts.


Posts

Joined
Thu Apr 06, 2023 4:40 am

Post by TMD Extension @ » Fri Apr 07, 2023 1:19 pm

There might be multiple reason for not working the cart and other things on SSL.
1. Crose origin error HTTP and HTTPS
2. Configuration of website url in config file is not perfect.
3. there may be www or non www error

I suggest you start with config file for https url setting. you must declare the https in config files of front and admin both.

Also check the .htaccess file to redirect the non HTTP url to https and redirect non www to www url

// HTTP
define('HTTP_SERVER', 'http://yourwebwsite/admin/');
define('HTTP_CATALOG', 'http://yourwebwsite.com/');

// HTTPS
define('HTTPS_SERVER', 'https://yourwebwsite/admin/');
define('HTTPS_CATALOG', 'https://yourwebwsite.com/');

Image

Thanks & Regards
Sehaj Kaur
TMD Extensions
Contact Us For Customisations


Active Member

Posts

Joined
Thu Mar 17, 2022 12:59 pm
Who is online

Users browsing this forum: No registered users and 25 guests