Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marcel

    (@marceljm)

    Hi, @loreberry

    WooCommerce 3 is causing that once it’s replacing “https://” by “//” on shop. It shouldn’t be a problem. However your images are very specific because they can be accessed using “https” but not “http”.

    So I’ll give you two solutions:

    Solution 1:

    a) open
    woocommerce/includes/wc-core-functions.php

    b) replace the line 1880
    $wp_base = str_replace( array( ‘https://’, ‘https://’ ), ‘//’, get_home_url( null, ‘/’, ‘http’ ) );
    by
    $wp_base = strpos($url, ‘fifu’) !== false ? $url : str_replace( array( ‘https://’, ‘https://’ ), ‘//’, $url );

    c) Save the file.

    PS.: WooCommerce updates can overwrite this change.

    Solution 2:

    Allow your images be accessed with “http” also.

    Thread Starter loreberry

    (@loreberry)

    Hi,

    thank you for your message!

    I tried the first solution and replaced the line 1880. The final lines of my wc-core-functions.php look like that:

    function wc_is_external_resource( $url ) {
    $wp_base = strpos($url, ‘fifu’) !== false ? $url : str_replace( array( ‘https://’, ‘https://’ ), ‘//’, $url );

    return strstr( $url, ‘://’ ) && strstr( $wp_base, $url );
    }

    Unfortunately, that did not work out. Do you have any idea why? And how could I allow these images from Amazon to be accessed with http?

    Plugin Author Marcel

    (@marceljm)

    @loreberry,

    Try to enable Fake Internal Featured Image in the plugin setrings.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Featured Image Thumbnail not showing on WooCommerce Shop page’ is closed to new replies.