Jump to content

Archived

This topic is now archived and is closed to further replies.

fd1139

SSL Problem with WooCommerce checkout - non-secure items

Recommended Posts

fd1139    1
fd1139

I released a new site using Pageworks and WooCommerce, including WC Pagelines.  WooCommerce is set to force and unforce SSL.  WooCommerce status page is attached that lists all version - all current at time of this post.

 

 

 

I searched this forum and others looking for a solution.  I tried, with no success, adding PHP filters to functions.php.  I also tried forcing SSL for the entire site, with no success.  

 

Message from Chrome Console:

[blocked] The page at [checkout page] ran insecure content from http://[domain]/wp-content/themes/pagelines/pagelines-compiled-css-1_1370917795/.

 

How can I get SSL to work properly?  Any help is much appreciated.

 

Thank you.

  • Like 1

Share this post


Link to post
Share on other sites
ellenmva    112
ellenmva

I made a change in the WooCommerce for Pagelines plugin so go into Pagelines --> Store --> Plugins --> Your Plugins and update. If you don't see the update there, scroll to the bottom and click on Refresh Store.

 

Then either in your child theme or using the Pagelines Customize plugin put this code in the functions.php file.

add_filter( 'pless_vars', 'make_ssl_vars' );
add_action( 'pl_force_ssl', '__return_true' );
    
function make_ssl_vars( $vars ) {
    $vars['plSectionsRoot'] = str_replace( 'http://', 'https://', $vars['plSectionsRoot'] );
    $vars['plRoot'] = str_replace( 'http://', 'https://', $vars['plRoot'] );
    return $vars;
}

Then go to Pagelines --> Site Options and Save Options.

 

The pagelines-compiled-css file should now be https.

 

Ellen


Ellen Moore

Pagelines Developer

www.elsue.com www.betterdms.com

Share this post


Link to post
Share on other sites
fd1139    1
fd1139

Ellen,

 

Thank you very much for the quick reply and updated code.  Everything worked as you described.

 

BTW: A short time after you replied WooCommerce 2.0.11 was released.  I tested your update with both WC 2.0.10 and 2.0.11.  Everything worked with both WC releases.

 

I appreciate your help!!

 

FD

Share this post


Link to post
Share on other sites
ellenmva    112
ellenmva

Perfect! Glad everything is working. I'll be switching a client site over to Pagelines soon who uses WooCommerce that is using an SSL certificate too. Now I won't have to figure it out :)

 

Ellen

  • Like 1

Ellen Moore

Pagelines Developer

www.elsue.com www.betterdms.com

Share this post


Link to post
Share on other sites

  • Similar Content

    • caspersjan
      By caspersjan
      Hello, 
      I am running into problems with the Woocommerce for Pagelines plugin, version 1.3.1. As soon as I activate it, the Shop page is rendered completely blank, even the Editor disappears. I have no other plugins active except Pagelines Updater and DMS Professional Tools. Could I be doing something wrong or is there an incompatibility? I suspect the former because I'm sure Woocommerce for Pagelines must be compatible with Woocommerce... It looks so promising and I'd love to use it! I must say that I am new to Woocommerce in general, but I tried every setting I could think of and work out and simply cannot get it to work with Woocommerce for Pagelines. My site in question is www.knetgut.de.
      I hope you can shed light on this and I appreciate your assistance! Yours faithfully, Jan Caspers.
    • adminuni
      By adminuni
      Hello!
       
      I am having trouble adding variables to a product. Couple of my products contain many variables and noticed that every time I update the product, variables all become default, or the stock quantity and price that I added become blank.
       
      I tried deleting some of these variables and readded them, which I thought was the only solution, but even when these variables work, when I check back later, other variables become blank. It has been very frustrating and time-consuming, is there any solution to this problem?
       
      (I tried deactivation plugins but that did not work, I tried duplicating the product and that did not work as well)
       
      http://main.4cats.com/
      for products: 'Party' and 'Glow in the dark splatter party'
       
      I will send the login info.
       
      Thank you so much in advance!
    • netage
      By netage
      Hi,
       
      How do I style the featured products?
       
      Regards,
      Cait
       
    • outtareach
      By outtareach
      I know this may be simple but seems nothing is working.  I changed columns from 4 to 6 in the shortcode and I still see 4 columns.  I also changed the image sizes to fit with the 6 columns and nothing changed.  cannot find the php code in functions that people are talking about changing.  Anyone know of any way to add more columns thus making the images smaller per line?
    • outtareach
      By outtareach
      My products are not displaying correctly and I cant see the content that is hindering them from working because its just blank data.  I can select it but no text/content displays.  any help would be great because I am finally starting to get this together.
       

×