• Resolved tuyotienda

    (@tuyotienda)


    Hi, i love the plugin but cant use it on divi because all my products get double feature image , and in the product gallery (slider)the video is being shown many times ??

    thanks!

    daniela

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter tuyotienda

    (@tuyotienda)

    update: I’ve tried changing the theme and disabling all plugins, and still duplicates the video on the product gallery, so is not a Divi thing

    Hello,

    I have the same issue. It creates a new video thumbnail for each image product that I have. I don’t use Divi.

    Do you think this will be sorted out in the next update?

    Thanks,
    Flamby

    Hi everyone,

    I think I understand what is happening :
    in the woocommerce file wp-content/plugins/woocommerce/templates/single-product\product-thumbnails.php there is the following loop :

    if ( $attachment_ids && $product->get_image_id() ) {
    foreach ( $attachment_ids as $attachment_id ) {
    echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', wc_get_gallery_image_html( $attachment_id ), $attachment_id);
    }
    }

    So we are looping on all thumbnails and calling the filter 'woocommerce_single_product_image_thumbnail_html'

    And in the rsfv plugin code in the file wp-content/plugins/really-simple-featured-video/includes/Compatibility/Plugins/WooCommerce/class-compatibility.php we are calling the same filter in the setup() function :
    add_filter( 'woocommerce_single_product_image_thumbnail_html', array( $this, 'woo_get_video' ), 10, 2 );

    So for each thumbnail the video is added.

    I managed a workaround by adding a class param that only allows the function woo_get_video tobe called just once and it’s working. (After the first passage it returns the $html param right away so).

    Maybe woocommerce changed the template product-thumbnails.php in a recent version or the changed where they are using the woocommerce_single_product_image_thumbnail_html filter.

    Hope that helps others.
    Florian

    Hi there guys

    Sorry for the delay in response, and thank you @flamby31 for looking into this, but this is the not an error proof way to fix this.

    On a side note why – The more we move towards all out FSE themes, it becomes harder and harder to maintain backwards compatibility both ways since Woo Blocks are taking over as well and the hooks you see won’t be supported going forward at least in Woo Blocks. I have a foolproof way planned to get by it but is due post a Pro version of this plugin.

    I have just now released an update fixing most of the issues, though supporting Divi or alike themes is still out of scope for the free version of this plugin.

    So we’re currently working on a Pro plugin, read more about it at – https://www.ads-software.com/plugins/really-simple-featured-video/

    Thank you for reaching out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘duplicates on divi’ is closed to new replies.