Alter this script: skin/common_files/modules/Xcart_Mobile/customer/core.js line 145, block:
Code:
/**
* Update thumbnails sizing (products list, cart, etc.)
*/
var current_em = Math.floor($('.product-thumbnail').width());
$(".product-thumbnail img").each(function(){
if (!$(this).hasClass('leveler')) {
// Get on screen image
var screenImage = $(this);
// Create new offscreen image to test
var theImage = new Image();
theImage.src = screenImage.attr("src");
var sizes = func_crop_dimensions (theImage.width, theImage.height, current_em, current_em);
$(this).css({
width: sizes[0],
height: sizes[1]
});
}
});
and replace the code above with this code:
Code:
/**
* Update thumbnails sizing (products list, cart, etc.)
*/
var current_em = Math.floor(parseFloat($('.product-thumbnail').css('width')));
$(".product-thumbnail img").each(function(){
if (!$(this).hasClass('leveler')) {
// Get on screen image
var screenImage = $(this);
// Create new offscreen image to test
$('<img />').attr("src", screenImage.attr("src")).load(function(){
var sizes = func_crop_dimensions (this.width, this.height, current_em, current_em);
screenImage.css({
width: sizes[0],
height: sizes[1]
});
});
}
});
This should fix the missing images issue.