How can I add multiple images of the same type... Medium as an example using the WSI.
How can I add multiple images of the same type... Medium as an example using the WSI.
Nevermind
<Medium>
<Img Index="1" Color="" Extension="gif|jpg|png|jpeg" Delete="boolean">base64 encoded image data here</Img>
<Img Index="1" Color="" Extension="gif|jpg|png|jpeg" Delete="boolean">base64 encoded image data here</Img>
<Img Index="1" Color="" Extension="gif|jpg|png|jpeg" Delete="boolean">base64 encoded image data here</Img>
<Img Index="1" Color="" Extension="gif|jpg|png|jpeg" Delete="boolean">base64 encoded image data here</Img>
<Img Index="2" Color="" Extension="gif|jpg|png|jpeg" Delete="boolean">base64 encoded image data here</Img>
<Img Index="2" Color="" Extension="gif|jpg|png|jpeg" Delete="boolean">base64 encoded image data here</Img>
<Img Index="2" Color="" Extension="gif|jpg|png|jpeg" Delete="boolean">base64 encoded image data here</Img>
<Img Index="2" Color="" Extension="gif|jpg|png|jpeg" Delete="boolean">base64 encoded image data here</Img>
<Img Index="3" Color="" Extension="gif|jpg|png|jpeg" Delete="boolean">base64 encoded image data here</Img>
</Medium>
Hi! I can't make this work. Is this really the right xml format for multiple images for a product?
Jani
Yes, but the < Medium > element must be contained within a < MultiImage > element. In other words, Images -> MultiImage -> Icon, Medium or Large.
You can also include an SKU attribute if you SKU's for the product image name, and an ImageFilenameOverride if you want to use a different image name than the default.
Jon Wolthuis
OK. Thanks. Now I'm able to upload multiple images. But now the LargeCreatesOthers stopped working..
Jani
Do you have UseImageResize set to true as well?
Last edited by toffo; 05-04-2009 at 12:36 AM.
The best way do this is to make sure that your appconfigs are set properly, and then set the UseAppConfigs attribute of the Images node to true (you don't have to do this, but then you'll have to set parameters on each of the images size nodes as well). The correct syntax when using appconfig parameters is as follows:
If the appconfigs are configured to use image resizing and LargeCreatesOthers, the xml provided here would create 15 images; 5 each for large, medium, and icon. If micro images are configured it will also create an additional 5 images for micro.Code:<Product Action="Update" ID="1"> <Images UseResize="true" UseAppConfigs="true"> <Large Extension="jpeg">...base64 encoded image data...</Large> <MultiImage> <Large> <Img Index="1" Extension="jpeg">...base 64 encoded image data...</Img> <Img Index="2" Extension="jpeg">...base 64 encoded image data...</Img> <Img Index="3" Extension="jpeg">...base 64 encoded image data...</Img> <Img Index="4" Extension="jpeg">...base 64 encoded image data...</Img> </Large> </MultiImage> </Images> </Product>
<a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>