Post by fknader » Mon Aug 02, 2021 5:02 am

Hi, Can anyone point me in the right direction?
Just tested Gift vouchers and although I have SSL and HTTPS set, the return URL in the Gift voucher email is pointing to HTTP, the unsecure site.
Where can I find the relevant code to fix this up?
in \catalog\view\theme\default\template\mail\voucher.twig it is pointing at a parameter {{ store_url }}
- General question - where do you find these parameters configured?
- Specific question - where can I find This parameter :)
Thanks for any help!
Cheers

Newbie

Posts

Joined
Thu Jul 29, 2021 5:23 pm

Post by paulfeakins » Mon Aug 02, 2021 6:30 pm

Make sure both config.php files say HTTPS everywhere and makes sure the setting in the admin, something like "Use Secure URLs" is on.

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 straightlight » Mon Aug 02, 2021 6:32 pm

The Use Secure URLs that needs to be set to: 'On' can be found in your OC admin > systems > settings > edit settings > Server tab.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ADD Creative » Tue Aug 03, 2021 12:33 am

The Use SSL (or Use Secure URLs) setting does nothing. So that will not help.

{{ store_url }} is set at the following places.
https://github.com/opencart/opencart/bl ... er.php#L82
https://github.com/opencart/opencart/bl ... r.php#L612
https://github.com/opencart/opencart/bl ... r.php#L651

However, you just need to check that HTTP_SERVER, HTTPS_SERVER are all https in config.php. And that HTTP_SERVER, HTTP_CATALOG, HTTPS_SERVER and HTTPS_CATALOG are all https in admin/config.php.

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: sidclel and 85 guests