one page checkout not working over SSL

1 year ago
I'm using Cloudflare for my domain and have an Universal SSL enabled on the website. All traffic is going over SSL like it should. Although whenever I enable the SSL checkbox in the settings I can no longer access the website and get the error "The page isn't redirecting properly".

Additional I cannot check-out in my webshop when using SSL. I use the one-page-checkout and the buttons to go to the next step aren't working and they send me back to the shopping cart page.
I've noticed that I can only check-out if I use http instead of https (after disabling the rewrite options etc. in Cloudflare to allow non-SSL traffic).

How do I debug this issue properly of maybe this behavior rings a bell with someone?
Using v4.50.2 on Ubuntu.
1 year ago
I'm having the same issue, I'm on an older version but the same exact scenario, if I enable SSL from the store settings the site doesn't work at all, it gives an error  ERR_TOO_MANY_REDIRECTS

the one page checkout goes back to / cart after the 1st step, customer can't finish and pay

this all happened after switching to Cloudfare,  we did it to block access to some countries cause form submissions.

Please help
1 year ago
Hello I was able to fix this,

I turnd off enable SSL from under store, made sure all traffic is going to SSL from cloudfare

and did this edit on OnePageCheckout.cshtml i found online for the one page checkout.

"Found a workaround for this, just need to change the ~\Theme\Views\Checkout\OnePageCheckout.cshtml
Change (nopcommerce 4.x):
var storeLocation = webHelper.GetStoreLocation();
to:
var storeLocation = webHelper.GetStoreLocation(true);"

https://www.nopcommerce.com/ru/boards/topic/42111/cloudflare-flexible-ssl-and-nopcommerce-problem/page/2


belekz wrote:
I'm using Cloudflare for my domain and have an Universal SSL enabled on the website. All traffic is going over SSL like it should. Although whenever I enable the SSL checkbox in the settings I can no longer access the website and get the error "The page isn't redirecting properly".

Additional I cannot check-out in my webshop when using SSL. I use the one-page-checkout and the buttons to go to the next step aren't working and they send me back to the shopping cart page.
I've noticed that I can only check-out if I use http instead of https (after disabling the rewrite options etc. in Cloudflare to allow non-SSL traffic).

How do I debug this issue properly of maybe this behavior rings a bell with someone?
Using v4.50.2 on Ubuntu.
1 year ago
Saved my life with this solution, I have been banging my head against the wall trying to resolve it after setting up SSL.

Thank you!!!
11 months ago
hi, After installation of one-page checkout pluggin' the checkout panel is not loading. I can load this panel if I disable the secure connection.
Error - Page loaded over HTTPS but requested an insecure XMLHttpRequest endpoint
How can I solve the issue without compromising security