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:
[code=csharp]return product.ImageFileMedium;[/code]
Try replacing it with this:
[code=csharp]
return DiskStorage.ProductImageUrlSmall(
hccApp,
product.Bvin,
product.ImageFileSmall,
hccApp.IsCurrentRequestSecure());
[/code]
Or this:
[code=csharp]
return DiskStorage.ProductImageUrlOriginal(
hccApp,
product.Bvin,
product.ImageFileSmall,
hccApp.CurrentRequestContext.RoutingContext.HttpContext.Request.IsSecureConnection);[/code]
You'll probably also need to import one or both of the following namespaces:
[code=csharp]
@using Hotcakes.Commerce.Storage
@using Hotcakes.Commerce.Utilities
[/code]
By the way, this kind of inquiry is covered, with guaranteed response times under our Developer Support Services.
https://upendoventures.co...ce-Developer-Support
Will Strohl, Upendo Ventures
Hotcakes Cloud |
Get Support |
Code Support Official Cloud & Support provider for Hotcakes