Post by trixiemay » Sun Mar 26, 2023 10:44 am

OC3.0.3.2
I cant add to cart. Get a warning of 'Error undefined". This seems to have happened after I installed an SSL certificate to make the site secure and changed the config files to https.
Any ideas please?

thanks

___________________________________________
"Speak softly but carry a big stick" :crazy:


Active Member

Posts

Joined
Thu Mar 09, 2017 2:53 pm


Post by paulfeakins » Mon Mar 27, 2023 6:42 pm

trixiemay wrote:
Sun Mar 26, 2023 10:44 am
Any ideas please?
Make sure it says "https://" everywhere in both your config files.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by TMD Extension @ » Mon Mar 27, 2023 8:12 pm

After applying the SSL you need to do some code work too.
open both config files font and admin in any code editor.

Its time to check and apply the "s" after the HTTP

do this for both files. Save it and check in the private browser
FOTN CONFIG FILE
// HTTP
define('HTTP_SERVER', 'http://www.yoursite.com/');

// WITH HTTPS
define('HTTPS_SERVER', 'https://www.yoursite.com/');
====================

ADMIN CONFIG FILE


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

// HTTPS
define('HTTPS_SERVER', 'http://www.yoursite.com/admin/');
define('HTTPS_CATALOG', 'http://www.yoursite.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: sidclel and 85 guests