Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1161730
Mixed content when using HTTPS on checkout
Closed

Comments

  • dsquare96 started the conversation

    Hello,

    I experience a mixed-content warning when using HTTPS on the checkout page. It is caused by the form's action url: http://wc_get_checkout_url.

    I have solved it by a small change in your code, file woocommerce/checkout/form-checkout.php:87. 

    action="<?php echo str_replace('http:', '', esc_url( wc_get_checkout_url )); ?>"

    I just got rid of the "http:" part of the string, so the "//" that is left makes it follow the protocol being in use.

    I thought you should know about this problem. Maybe you can solve it in a more elegant way. If not, you can use my solution.