Page 1 of 1

Homepage Product Links Using HTTP Instead of HTTPS – OpenCart 3.0.2.0

Posted: Wed Apr 02, 2025 5:23 am
by elvito
Hi, I have a problem with the homepage layout.
I have several OC Products Modules that print different types of product grids.

There, and only there, the product links are printed using a plain HTTP URL instead of the HTTPS one.
Every single other link on the site is correctly printed with HTTPS.

I'm using OpenCart Version 3.0.2.0 with the tt_aero theme.
There are no translation extensions, and I suspect that the culprit is the OC Tab Products extension, but I haven't found any clues.
I'm also using the Complete SEO Package extension, which handles URLs, so that could be the cause as well.

Has anyone encountered the same problem?

P.S. I was wondering if, as a last resort, it is safe to replace the HTTP_SERVER URL with the HTTPS one in config.php (at least in the root config, not the admin one).

Thanks in advance.

Re: Homepage Product Links Using HTTP Instead of HTTPS – OpenCart 3.0.2.0

Posted: Wed Apr 02, 2025 6:29 am
by johnp
elvito wrote:
Wed Apr 02, 2025 5:23 am
Hi, I have a problem with the homepage layout.
I have several OC Products Modules that print different types of product grids.

There, and only there, the product links are printed using a plain HTTP URL instead of the HTTPS one.
Every single other link on the site is correctly printed with HTTPS.

I'm using OpenCart Version 3.0.2.0 with the tt_aero theme.
There are no translation extensions, and I suspect that the culprit is the OC Tab Products extension, but I haven't found any clues.
I'm also using the Complete SEO Package extension, which handles URLs, so that could be the cause as well.

Has anyone encountered the same problem?

P.S. I was wondering if, as a last resort, it is safe to replace the HTTP_SERVER URL with the HTTPS one in config.php (at least in the root config, not the admin one).

Thanks in advance.
If you're under SSL all http references in the root/config.php and admin/config.php should be https://

Also make sure SSL is enabled in your site settings tab.

Re: Homepage Product Links Using HTTP Instead of HTTPS – OpenCart 3.0.2.0

Posted: Sat Apr 05, 2025 3:35 pm
by elvito
In fairness i was a little confused about the presence of both config params:

// HTTP
define('HTTP_SERVER', 'https://www.<mysite>.com/');

// HTTPS
define('HTTPS_SERVER', 'https://www.<mysite>.com/');


and in some modules are selectively use both $url = new Url(HTTP_SERVER, $config->get('config_secure') ? HTTPS_SERVER : HTTP_SERVER);
However setting even the HTTP_SERVER seem to have done the trick.

Thank you!