Gavin Barker 2 header image 2

Magento Onepage Checkout by IWD gives SSL problem – fix

October 15th, 2014 · 10 Comments

It turns out that the IWD Onepage Checkout extension was causing some https errors in Chrome. It was claiming that some of the content was not secure, yet everything that loaded on the page was and Firefox didn’t have a problem with the page. Internet Explorer probably didn’t but I didn’t check.

So, if you see something like the following then I have a fix.

The error

When you go to checkout using the Onepage Checkout (OPC), Chrome throws up the following in the address bar suggesting the site is now safe.


Error message seen in Chrome address bar

The problem

Behind the scenes investigation shows that on the OPC page there are a couple of forms that post the data to a non-secure http:// link instead of https:// so Chrome is worried that they stuff you post is not sent securely (and they are right). The two bits in particular are shown below.


Firebug showing what the problem is

 The Fix

Make changes to the two files below that write out these links so that they request the secure version by adding array(‘_secure’=>true) to the getURL


<form id=”opc-discount-coupon-form” action=”<?php echo $this->getUrl(‘checkout/cart/couponPost’, array(‘_secure’=>true)) ?>” method=”post”>



<form action=”<?php echo $this->getUrl(‘*/*/forgotpasswordpost’, array(‘_secure’=>true)) ?>” method=”post” id=”form-validate-email” style=”display:none”>

Tags: Work

10 responses so far ↓

  • 1 Calvin S // Oct 23, 2014 at 10:11 pm

    I experienced the same problem described in this article and had a heck of a time trying to fix it. Not much on the forums regarding this opc SSL issue. Your solution worked. Thanks for making my life that much easier.

  • 2 gavin // Oct 25, 2014 at 5:08 pm

    Hi Calvin
    That was my reason for posting this as I couldn’t find the answer by searching either and I knew I wouldn’t be alone. Glad it helped.

  • 3 Ankit Sharma // Nov 2, 2014 at 12:37 am


  • 4 David // Nov 8, 2014 at 5:14 pm too! – thanks very much for this Gavin. Tore my hair out trying to solve the opc issue..solved

  • 5 Leo // Nov 14, 2014 at 12:35 pm

    Great post! Solved my problem!

  • 6 Fidel // Jan 27, 2015 at 3:29 pm

    Did the trick. AWESOME!!!!!!!

  • 7 Chris McLean // Mar 10, 2015 at 2:17 pm

    Thank you for sharing this info! I had the same problem but could not find a solution at that time so I had to switch to GoMage LightCheckout extension. It works great, I have never had any problems with it.

  • 8 Mike // May 17, 2015 at 7:29 pm

    I tried this but I still get the warning. I am using a theme. I have also tried moving the OPC folder to theme path app/design/frontend/mytheme/default/template/

    Please help.

  • 9 Jeff // May 26, 2015 at 2:24 am

    Fixed my SSL issue, It was only on chrome browsers, this seemed to do the trick! Thanks so much!

  • 10 kevin // Jun 8, 2015 at 3:57 pm

    hi , gavin .
    when i open my site in chrome https is running fine. but in firefox it is not opening over https . even one page checkout is also not opening please guide me thankyou

Leave a Comment