Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Attach Product Image via code View modes: 
User avatar
Member
Member
bgeorge - 10/21/2010 1:34:37 PM
   
Attach Product Image via code
Hi

We are implementing an eCommerce solution that requires the products to be pulled from an external web service.

Following the sample code provided (Product import from external source) we are able to pull the records and save it. Except for the part where we need to attach the product image to the SKUImagePath.

These images are located on the server folder outside the web application root path so it needs to be imported into the system.

Do you have any sample code or reference that i could go through to complete this implementation.

Thanks

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/25/2010 3:13:34 AM
   
RE:Attach Product Image via code
Hello,

Images for products (SKUs) are stored as MetaFiles. Please see the 'MetaFileInfo class' and 'MetaFileInfoProvider class' topics in the API reference.

You can also check, how the images are added in our code in the ~\CMSModules\Ecommerce\Content\Product\NewProduct.ascx.cs file (this control is used to add a new product).

Best regards,
Boris Pocatko