I am importing about 3000 products into my VirtueMart 3.0.2 store. I am using CSVI Pro 5.20.
Many products have more than one image and I have had success importing products along with their images. My problem is how do I set the main image for the product. The image area from my XML file looks like this:
<Images> <ImageURL1>~/Galleries/Products/ME087_Apple iMac 21.5 2.9GHz/sml_ME087_Apple iMac 21.5 2.9GHz1.jpg<\ImageURL1> <ImageURL2>~/Galleries/Products/ME087_Apple iMac 21.5 2.9GHz/sml_ME087_Apple iMac 21.5 2.9GHz3.jpg<\ImageURL2> <ImageURL3>~/Galleries/Products/ME087_Apple iMac 21.5 2.9GHz/sml_ME087_Apple iMac 21.5 2.9GHz4.jpg<\ImageURL3> <ImageURL4>~/Galleries/Products/ME087_Apple iMac 21.5 2.9GHz/sml_ME087_Apple iMac 21.5 2.9GHz5.jpg<\ImageURL4> <ImageURL5>~/Galleries/Products/ME087_Apple iMac 21.5 2.9GHz/sml_ME087_Apple iMac 21.5 2.9GHz2.jpg<\ImageURL5></Images>Some products can have up to 7 images.
I want ImageURL1 to be the main image for the product how can I ensure that?
I am also just working on this. It seems you have to include file_ordering is you upload them. But I haven't tested it yet.
product_sku
file_type
published
file_url
file_title
file_description
file_meta
file_ordering
"product_sku", "file_type", "published", "file_url", "file_title", "file_description", "file_meta", "file_ordering"
"H01", "product", "1", "hammer.png|hammer2.png", "Hammer|Hammer side", "A great hammer|Side view", "hammer,tool|hammer,tool", "1|2"
User @ptrouw is correct, if you want to control the ordering you can use the file_ordering field. If no ordering is specified, CSVI sets the ordering based on the order the images are specified.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
This works:
"product_sku", "file_type", "published", "file_url", "file_title", "file_description", "file_meta", "file_ordering"
"H01", "product", "1", "hamer1.jpg", "Hamer een", "Hamer een groot","hamer,tool", "1"
"H01", "product", "1", "hamer2.jpg", "Hamer twee", "Hamer twee rubber","hamer,tool", "2"
First Hamer1.jpg is the main picture!
Log in to reply to this topic.