Post by kuochinwu » Wed Jan 03, 2018 12:11 pm

Hello,

I have a question and not sure if anyone ever experienced. I have forced my entire website to load through https; however I just figured out the "Last Page Visited" url link in Customer Online Report not showing with "https" but instead only "http" link? All the recorded links are with "http"

My site load through https pages completely; however, the "last Page Visited" column not recording correctly with https links but the "Referer" column showing no problem with the https links. Any idea and how to make it showing right?

Thanks,

Paul

Newbie

Posts

Joined
Fri Oct 28, 2016 12:48 am

Post by imdevlper18 » Wed Jan 03, 2018 1:37 pm

This issue exist on 2.x version and not on 3.x version.

Connect to your server via FTP or cPanel and go to your opencart root directory.
Now go to this path below:

Code: Select all

catalog/controller/common/footer.php
Find this line ( Line no. 61):

Code: Select all

$url = 'http://' . $this->request->server['HTTP_HOST'] . $this->request->server['REQUEST_URI'];
Replace with:

Code: Select all

$url = ($this->request->server['HTTPS'] ? 'https://' : 'http://') . $this->request->server['HTTP_HOST'] . $this->request->server['REQUEST_URI'];
Save the file and close it.

Now login into your admin and go to extension - modification page.
Click refresh icon.

It should be okay now.

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by kuochinwu » Wed Jan 03, 2018 2:23 pm

Awesome; it works perfectly now. Thank you one million for help!

Paul

Newbie

Posts

Joined
Fri Oct 28, 2016 12:48 am

User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by NZSD » Sat Sep 12, 2020 5:28 pm

Thank you Cartbinder. This fix is still need in 2.03.2

User avatar
Newbie

Posts

Joined
Tue Jan 09, 2018 9:54 am


Post by imdevlper18 » Sat Sep 12, 2020 5:31 pm

HI,

Let me know correct version no.

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by Hop2per » Sat Sep 12, 2020 6:45 pm

kuochinwu wrote:
Wed Jan 03, 2018 12:11 pm
Hello,

I have a question and not sure if anyone ever experienced. I have forced my entire website to load through https; however I just figured out the "Last Page Visited" url link in Customer Online Report not showing with "https" but instead only "http" link? All the recorded links are with "http"

My site load through https pages completely; however, the "last Page Visited" column not recording correctly with https links but the "Referer" column showing no problem with the https links. Any idea and how to make it showing right?

Thanks,

Paul
I am having same problem. Any proper solution ?

Newbie

Posts

Joined
Mon Mar 09, 2020 4:57 pm

Post by ADD Creative » Sun Sep 13, 2020 7:20 am

What was wrong with the solution posted? viewtopic.php?f=190&t=200879#p709248

Which was the same way in version 3.
https://github.com/opencart/opencart/co ... e6f25afaee

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 281 guests