Force SSL Checkout in WooCommerce
When I set up my most recent WooCommerce website, I got the message:
“Square is enabled, but the force SSL option is disabled; your checkout is not secured! Please enable SSL and ensure your server has a valid SSL certificate.”
My client has a properly installed valid SSL certificate. I checked their “Really Simple SSL” plugin settings against my other similar websites. So why am I getting this message? And why won’t Square load as a payment option at checkout?
The below solutions were found in the WordPress support forum:
If your website is not loading over HTTPS
After ensuring that your SSL Certificate is properly installed, log in to http://yourwebsite.com/wp-admin and go to “WooCommerce > Settings > Advanced” to force SSL checkout.
If your website is already loading over https, this setting will be hidden. Try the below steps, which worked perfectly for me.
If your website is loading over HTTPS
Step 1: Make sure you have a recent backup! The page I am sending you to gives access to important database entries. A simple typo could cause major problems.
- Go to https://yourwebsite.com/wp-admin/options.php
- Look for the line “woocommerce_force_ssl_checkout“
- Change the setting from “no” to “yes”
- Scroll down and save
Note: There is also a “woocommerce_unforce_ssl_checkout” which should be left on “no”. Make sure you don’t get these two settings mixed up!
Reconnect Square (credit card processor)
After enabling “force ssl checkout”, Square was still not showing as a payment option at checking. I had to:
- Disable Square plugin
- Clear all WordPress caches
- Enable Square plugin and reconnect it to the appropriate Square account
Thank you, Michelle! I was stuck and didn’t know how to fix this problem. I set this parameter to yes – woocommerce_force_ssl_checkout.
You are welcome Pat π And thank you for commenting! (Sorry, I thought I responded to this a couple of weeks ago.)
Thank you, Michelle! I was stuck and didn’t know how to fix this problem. I set this parameter to yes – woocommerce_force_ssl_checkout.
You are welcome Pat π And thank you for commenting! (Sorry, I thought I responded to this a couple of weeks ago.)
Thank you sir! Worked perfectly! I’ve only set this parameter to yes on line woocommerce_force_ssl_checkout.
Thank you sir! Worked perfectly! I’ve only set this parameter to yes on line woocommerce_force_ssl_checkout.
Hey, I have set woocommerce_force_ssl_checkout parameter “no” to “yes” but when I click on save changes. It remains “no” why It’s happening?
This may be a caching problem. Does your website or server use any caching plugins that you can clear? Or do you run traffic through any services such as cloudflare?
Hey, I have set woocommerce_force_ssl_checkout parameter “no” to “yes” but when I click on save changes. It remains “no” why It’s happening?
This may be a caching problem. Does your website or server use any caching plugins that you can clear? Or do you run traffic through any services such as cloudflare?
I already removed caches on site. I have set woocommerce_force_ssl_checkout parameter βnoβ to βyesβ but when I click on save changes.
Can you double-check:
Are all of your plugins up to date? If no, the first step should be to do a backup and update any older plugins. It’s surprising what things can go wrong when a seemingly unrelated plugin is outdated.
woocommerce_force_ssl_checkout set to “yes”
woocommerce_unforce_ssl_checkout set to “no”
It may help to clear the website cache AND your browser cache one more time. You can look up “clear cache for one website in ____”, filling in the blank with your browser. This will help avoid some of the headache that comes with clearing your entire cache. Let me know if you are still having problems and I can email you with a couple more ideas.
I did browse your website to see if I could see any frontend errors. The only thing I noticed was that I could not select an “order type”. I assume that is because I am in the US?
I already removed caches on site. I have set woocommerce_force_ssl_checkout parameter βnoβ to βyesβ but when I click on save changes.
Can you double-check:
Are all of your plugins up to date? If no, the first step should be to do a backup and update any older plugins. It’s surprising what things can go wrong when a seemingly unrelated plugin is outdated.
woocommerce_force_ssl_checkout set to “yes”
woocommerce_unforce_ssl_checkout set to “no”
It may help to clear the website cache AND your browser cache one more time. You can look up “clear cache for one website in ____”, filling in the blank with your browser. This will help avoid some of the headache that comes with clearing your entire cache. Let me know if you are still having problems and I can email you with a couple more ideas.
I did browse your website to see if I could see any frontend errors. The only thing I noticed was that I could not select an “order type”. I assume that is because I am in the US?