• Resolved melaniejb

    (@melaniejb)


    Hi,

    the product gallery is not displaying properly on mobile when I choose a variation.

    The gallery displays as normal when I view the product page:
    https://imgur.com/8ZayUjk

    But then when I select a variation the gallery disappears completely:
    https://imgur.com/VgZzCJG

    This is only happening on my phone. It works fine on my computer.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Bayejid Ahmed

    (@bayejid00)

    Hi @melaniejb,

    If the variable product does not variation image, then when you select on a variation, it will show only the featured image if the featured image showing option is checked and the default gallery will not show.

    Keep unchecked the featured image option not to show along with variation images. In this case, if the product does not have variation images then it will show default gallery with featured image.

    After this, let me know if the gallery slider works properly or not.

    Thread Starter melaniejb

    (@melaniejb)

    Hello,

    the featured image option was already unchecked. So the gallery slider is still not working properly.

    Thank you

    Plugin Support Bayejid Ahmed

    (@bayejid00)

    Hi,

    Thank you for pointing out the image loading issue. We have noted it in the development roadmap. The resolution will be included in the future version.

    For a quick solution, kindly add the following code in the current theme’s funtions.php to resolve it like this screenshot.

    function wgs_gallery_reset () { 
    	if( is_product() ) { ?>
    	<script>
    		(function($){
    			$(document).on('ready', function(){
    				
    				$(document).on('change', '.variations select', function () {
    					setTimeout(function () { 
    						if( $('.wcgs-carousel .slick-list').outerHeight() == 1 ){
    							$('.wcgs-carousel').slick('refresh');
    						}
    					}, 300);
    				});
    			});
    		})(jQuery);
    	</script>
    	<?php  } 
    }
    add_action( 'wp_footer', 'wgs_gallery_reset', 99 );

    After adding, let us know if the gallery show properly or not.

    Thread Starter melaniejb

    (@melaniejb)

    Thank you,

    the gallery displays properly in Chrome on mobile but it still does not display properly in Instagram’s in-app browser.

    Is there a way to fix this?

    Thank you

    Plugin Support Bayejid Ahmed

    (@bayejid00)

    Hi @melaniejb,

    Please create a support ticket here and tell us how to test in instagram’s in-app browser to review the issue.

    Your co-operation will be much appreciated.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No image in mobile when variation is selected’ is closed to new replies.