Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Product Information on Shopping cart page View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
Gitesh - 10/27/2011 10:46:25 PM
   
Product Information on Shopping cart page
Hi guys,

I am on the shopping cart page for the ecommerce site and it shows all the product data.

Is there any easy way of showing the product image in the shoppingcartcontent.ascx page?

Thanks
Gitesh Shah

User avatar
Member
Member
kentico_edwardh - 10/28/2011 8:02:08 PM
   
RE:Product Information on Shopping cart page
Hello Gitesh,

You can adjust the ~\CMSModules\Ecommerce\Controls\ShoppingCart\ShoppingCartContent.ascx control (and its code-behind). It's possible to create method here, to retrieve the image tag to the template (similar to GetSKUName method, but just with one SKUID parameter). You can obtain the SKUImagePath property using code below:

CMS.Ecommerce.SKUInfo skui = CMS.Ecommerce.SKUInfoProvider.GetSKUInfo((int)skuID);

// skui.SKUImagePath is now available

Please note, the code above is just brief example, you will need to amend it to suit your needs.

Best Regards,
Edward Hillard