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
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
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
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.
{{ 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.
Who is online
Users browsing this forum: No registered users and 324 guests