Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

SSL in checkout page - how


Go to End


2 Posts   1778 Views

Avatar
tazzydemon

Community Member, 135 Posts

7 September 2008 at 2:37pm

In dabbling with the ecommerce module I am wondering if I am going stupid. How does one set the checkout page to be in a secure area?

I.e., How does one make the checkout link go to https://mysite/checkout/ or https://mysite/checkout and then what does one do with the linked images?

Julian

Avatar
Willr

Forum Moderator, 5523 Posts

7 September 2008 at 9:00pm

Ive never used it but I believe you have to call this method in your Checkout.php page in the function init...

Director::forceSSL()

Which will redirect the http://site/checkout/ to https://site/checkout. I think there was a discussion on the dev mailing list recently about this but cant remember too many details!