Hi Dynamicweb forum
I have recently upgraded a solution of our to 9.13.2
After the upgrade the default image (PIM) on many different products are not visible on the frontend and in the product feed. The customer is also using the image pattern feature and this feature still works.
For example see the image below (frontend):
But when i look inside the administration the default image is present:
PIM:
Ecom:
I have the following helper function for getting the path:
@functions {
public string GetProductImage(LoopItem productObject = null)
{
string theImage = "";
if (productObject == null) {
theImage = GetString("Ecom:Product.ImageDefault.Default.Clean");
theImage = String.IsNullOrEmpty(theImage) ? GetString("Ecom:Product.ImageLarge.Clean") : theImage;
theImage = String.IsNullOrEmpty(theImage) ? GetString("Ecom:Product.ImageMedium.Clean") : theImage;
theImage = String.IsNullOrEmpty(theImage) ? GetString("Ecom:Product.ImageSmall.Clean") : theImage;
theImage = String.IsNullOrEmpty(theImage) ? GetString("Ecom:Product.ImageLarge.Default.Clean") : theImage;
} else {
theImage = productObject.GetString("Ecom:Product.ImageDefault.Default.Clean");
theImage = String.IsNullOrEmpty(theImage) ? productObject.GetString("Ecom:Product.ImageLarge.Clean") : theImage;
theImage = String.IsNullOrEmpty(theImage) ? productObject.GetString("Ecom:Product.ImageMedium.Clean") : theImage;
theImage = String.IsNullOrEmpty(theImage) ? productObject.GetString("Ecom:Product.ImageSmall.Clean") : theImage;
theImage = String.IsNullOrEmpty(theImage) ? productObject.GetString("Ecom:Product.ImageLarge.Default.Clean") : theImage;
}
return theImage;
}
}
The settings for the product images are as follow: