It actually looks like it is working, but the image path isn't complete. It's only the image file name, and it doesn't include the rest of the image path. (Like I said, it was untested.)
Look for this line of code in the example:
return product.ImageFileMedium;
Try replacing it with this:
return DiskStorage.ProductImageUrlSmall(
hccApp,
product.Bvin,
product.ImageFileSmall,
hccApp.IsCurrentRequestSecure());
Or this:
return DiskStorage.ProductImageUrlOriginal(
hccApp,
product.Bvin,
product.ImageFileSmall,
hccApp.CurrentRequestContext.RoutingContext.HttpContext.Request.IsSecureConnection);
You'll probably also need to import one or both of the following namespaces:
@using Hotcakes.Commerce.Storage
@using Hotcakes.Commerce.Utilities
By the way, this kind of inquiry is covered, with guaranteed response times under our Developer Support Services.
https://upendoventures.c...mmerce-Developer-Support