Hello,
Yes, you're right, you will need to perform following steps to achieve it:
1. Please create new metod in ~\CMSModules\Ecommerce\Controls\ShoppingCart\ShoppingCartContent.ascx.cs control's code-behind like this:
protected static string DisplaySKUImage(object skuId)
{
int currentSKUID = ValidationHelper.GetInteger(skuId, 0);
if (currentSKUID > 0)
{
SKUInfo sku = SKUInfoProvider.GetSKUInfo(currentSKUID);
if (sku != null)
{
return EcommerceFunctions.GetProductImage(sku.SKUImagePath, 40, sku.SKUName);
}
}
return null;
}
2. Now you are able to call this method in the control itself:
<%# DisplaySKUImage(Eval("SKUID"))%>
This will show product image with the shopping cart item list. Please note you could make that method even better by adding maxsidesize as a parameter, but it's up to you ;-)
Best regards
Ondrej Vasil