I am using the plugin Feed them gallery which uses magnific pop up to show the images in pop up along with woocommerce options to buy a photo. However, when loading variables from woocommerce and then close the pop up, then page freezes like it's still trying to load woocommerce code even you have closed the pop up.
Problem should be here:
I am using the plugin Feed them gallery which uses magnific pop up to show the images in pop up along with woocommerce options to buy a photo. However, when loading variables from woocommerce and then close the pop up, then page freezes like it's still trying to load woocommerce code even you have closed the pop up.
Problem should be here:
if(jQuery('.ft-gallery-variations-text').hasClass('ft-gallery-js-load')) { jQuery('.single_add_to_cart_button').addClass('disabled'); }
jQuery( ".ft-gallery-js-load" ).hover(function() { if(jQuery('.ft-gallery-variations-text').hasClass('ft-gallery-js-load')) { jQuery.getScript("/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js"); jQuery('.ft-gallery-variations-text').removeClass('ft-gallery-js-load'); } });