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

About Michelle Hestand

Michelle is a website manager in East Texas. She mainly works on websites related to health, traveling entertainment, and family life.

14 Comments

  1. Pat on July 27, 2020 at 11:43 am

    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.

    • Michelle on August 21, 2020 at 9:16 pm

      You are welcome Pat πŸ™‚ And thank you for commenting! (Sorry, I thought I responded to this a couple of weeks ago.)

  2. Pat on July 27, 2020 at 11:43 am

    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.

    • Michelle on August 21, 2020 at 9:16 pm

      You are welcome Pat πŸ™‚ And thank you for commenting! (Sorry, I thought I responded to this a couple of weeks ago.)

  3. Frunza Cristian on September 14, 2020 at 8:49 am

    Thank you sir! Worked perfectly! I’ve only set this parameter to yes on line woocommerce_force_ssl_checkout.

  4. Frunza Cristian on September 14, 2020 at 8:49 am

    Thank you sir! Worked perfectly! I’ve only set this parameter to yes on line woocommerce_force_ssl_checkout.

  5. Manish Jain on June 4, 2021 at 1:19 am

    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?

    • Michelle on June 9, 2021 at 9:51 am

      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?

  6. Manish Jain on June 4, 2021 at 1:19 am

    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?

    • Michelle on June 9, 2021 at 9:51 am

      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?

  7. Havhon on September 27, 2021 at 8:37 am

    I already removed caches on site. I have set woocommerce_force_ssl_checkout parameter β€œno” to β€œyes” but when I click on save changes.

    • Michelle on September 28, 2021 at 10:51 am

      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?

  8. Havhon on September 27, 2021 at 8:37 am

    I already removed caches on site. I have set woocommerce_force_ssl_checkout parameter β€œno” to β€œyes” but when I click on save changes.

    • Michelle on September 28, 2021 at 10:51 am

      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?

Leave a Comment