• Resolved Stebok

    (@stebok)


    When the checkout page is HTTPS, I get an error saying that there is content loaded with HTTP. The culprit is the image files:

    […]/wp-content/plugins/paypal-for-woocommerce/assets/images/paypal.png
    […]/wp-content/plugins/paypal-for-woocommerce/assets/images/paypal_credit.png

    Those two image files are loaded with HTTP instead of HTTPS.

    The issue is the plugin is using WP_PLUGIN_URL instead of plugins_url()

    https://www.ads-software.com/plugins/paypal-for-woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Stebok

    (@stebok)

    Fixed the code here for wc-gateway-paypal-express-angelleye.php

    public function get_icon() {
    
            $image_path = plugins_url() . "/" . plugin_basename(dirname(dirname(__FILE__))) . '/assets/images/paypal.png';
            if ($this->show_paypal_credit == 'yes') {
                $image_path = plugins_url() . "/" . plugin_basename(dirname(dirname(__FILE__))) . '/assets/images/paypal-credit.png';
            }
            $icon = "<img src=\"$image_path\" alt='" . __('Pay with PayPal', 'paypal-for-woocommerce') . "'/>";
            return apply_filters('woocommerce_gateway_icon', $icon, $this->id);
        }
    Plugin Contributor angelleye

    (@angelleye)

    Thanks for the details. We’ll get this updated in our 1.1.6.3.5 update which will be coming out very soon (and includes WooCommerce 2.4 compatibility)

    Plugin Contributor angelleye

    (@angelleye)

    This has been merged into our 1.1.6.3.5 branch on GitHub and will be included in that update once it’s released here very soon.

    We had actually already fixed this in this update, however, what you pointed out here is more elegant than what we did, so thanks again! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Mixed content on checkout due to images’ is closed to new replies.