Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    you need to reinit the slider js for quick view modal. For doing this you can use this jquery trigger qv_loading. For example you can try do something like this

    jQuery(document).on('qv_loading', function() {
    
    if(jQuery().flexslider && jQuery('.woocommerce .images #carousel').length >= 1) {
    		var WooThumbWidth = 100;
    		if(jQuery('body.woocommerce .sidebar').is(':visible')) {
    			wooThumbWidth = 100;
    		} else {
    			wooThumbWidth = 118;
    		}
    
    		if(typeof jQuery('.woocommerce .images #carousel').data('flexslider') !== 'undefined') {
    			jQuery('.woocommerce .images #carousel').flexslider('destroy');
    			jQuery('.woocommerce .images #slider').flexslider('destroy');
    		}
    
    		jQuery('.woocommerce .images #carousel').flexslider({
    			animation: 'slide',
    			controlNav: false,
    			directionNav: false,
    			animationLoop: false,
    			slideshow: false,
    			itemWidth: wooThumbWidth,
    			itemMargin: 9,
    			touch: false,
    			useCSS: false,
    			asNavFor: '.woocommerce .images #slider',
    			smoothHeight: false,
    			prevText: '<',
    			nextText: '>',
    			start: function(slider) {
    				jQuery( slider ).removeClass( 'fusion-flexslider-loading' );
    			}
    		});
    
    		jQuery('.woocommerce .images #slider').flexslider({
    			animation: 'slide',
    			controlNav: false,
    			animationLoop: false,
    			slideshow: false,
    			smoothHeight: true,
    			touch: true,
    			useCSS: false,
    			sync: '.woocommerce .images #carousel',
    			prevText: '<',
    			nextText: '>',
    			start: function(slider) {
    				jQuery( slider ).removeClass( 'fusion-flexslider-loading' );
    			}
    		});
    	}
    }

    Anyway, if you can, I suggest you to ask also to your theme support to check code and compatibility.

    Regards.

    • This reply was modified 9 years, 8 months ago by YITHEMES.
Viewing 1 replies (of 1 total)

The topic ‘Product Images not working using Avada Theme’ is closed to new replies.