Hello!
I added the below code to make it work. The problem with WooCommerce 3.5+ they changed the function used to get images. Maybe they will revert it in the future or this lazy load plugin should handle that. Anyway in the mean time, you can force WooCommerce to stay using the old way through a filter. I wrote and test it on my site: https://lebelik.com/ or category page: https://lebelik.com/product-category/clothing/
function lebelik_woocommerce_product_get_image( $image, $this_product, $size, $attr ){
if ( $this_product->get_image_id() ) {
$image = get_the_post_thumbnail( $this_product->get_id(), $size, $attr );
}
return $image;
}
add_filter( 'woocommerce_product_get_image', 'lebelik_woocommerce_product_get_image', 10, 4 );
-
This reply was modified 5 years, 11 months ago by Ali Basheer.