Support » Plugin: YITH WooCommerce Featured Video » Opens wrong image

Viewing 2 replies - 1 through 2 (of 2 total)
  • If fixed it by adjusting the woocommerce single product script
    \woocommerce\assets\js\frontend\single-product.js

    changing

    
    var options = $.extend( {
    	index: $(clicked ).index()
    }, wc_single_product_params.photoswipe_options );
    

    in

    
    if ($(".ywcfav_has_featured")[0]){
    	var nfcIndex = $( clicked ).index()-1;}else{var nfcIndex=$(clicked ).index();
    }
    
    var options = $.extend( {
    	index: nfcIndex
    }, wc_single_product_params.photoswipe_options );
    

    But i will lose this on woocommerce update

    Plugin Author YITHEMES

    (@yithemes)

    Hi, thank you for your feedback. We are able to replicate the issue
    so we will work on it and we will release a plugin update as soon as possible

    Best Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Opens wrong image’ is closed to new replies.