Hi. How can we help?

Images not showing in quote page

Sometimes the images in the plugin's quote list may not be displayed. This is often due to the LazyLoad managed by some plugins or by the theme itself. To solve this issue, just insert one of the following snippets in the functions.php file of the theme. Depending on how the LazyLoad is managed, one of them will solve the problem.

Snippet 1:

function yith_raq_image_fix() {
?>
<script type="text/javascript" charset="utf-8">
jQuery(document).on('ywraq_table_reloaded', function ($) {
var images = jQuery('#yith-ywraq-form td.product-thumbnail a img');
images.each(function () {
var data_src = jQuery(this).attr('src');
jQuery(this).attr('srcset', data_src);
});
});
</script>
<?php
}

add_action( 'wp_footer', 'yith_raq_image_fix', 999999 );

Snippet 2:

function yith_raq_image_fix() {
?>
<script type="text/javascript" charset="utf-8">
jQuery(document).on('ywraq_table_reloaded', function ($) {
var images = jQuery('#yith-ywraq-form td.product-thumbnail a img');
images.each(function () {
var data_src = jQuery(this).data('src');
jQuery(this).attr('src', data_src);
});
});
</script>
<?php
}

add_action( 'wp_footer', 'yith_raq_image_fix', 999999 );

Snippet 3:

function yith_raq_image_fix() {
?>
<script type="text/javascript" charset="utf-8">
jQuery(document).on('ywraq_table_reloaded', function ($) {
var images = jQuery('#yith-ywraq-form td.product-thumbnail a img');
images.each(function () {
var data_src = jQuery(this).data('src');
jQuery(this).attr('src', data_src).attr('srcset', data_src).removeClass('lazy-img');
});
});
</script>
<?php
}

add_action( 'wp_footer', 'yith_raq_image_fix', 999999 );
Was this article helpful?
2 out of 4 found this helpful

Back to Help Center >