3 replies [Last post]
frazras's picture
Offline
Joined: 05/29/2008
Juice: 37
Was this information Helpful?

Please answer one or more of these questions if you can.

When specifying pictures with the import XML

1. Do the pictures need to be previously uploaded, or can the location be local
[on your hard drive] - to be uploaded?

2. What module does the XML support, image or image cache - are there any differences?

3. The image is uploaded for different purposes eg. thumbnails for cart, list and the original image.
Do I need to give a location for all of those pictures?

4. How should the field be specified, that is, plz show me an example of how it should look?

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Specifying Pictures in import XML

By default, Ubercart adds an image field to the product node types. It then displays this with its own theme function to make a thumbnail gallery with thickbox. The custom theme function makes the first image bigger than the rest. Imagecache takes your original image and resizes some copies for Ubercart to display.

The Importer directly supports the particular image field that Ubercart sets up, field_image_cache. The <image> tag in the <product> object contains the absolute path to the image, which is then transfered to the image field's directory. (This directory is the "files/" directory of Drupal, by default.) If you've got fairly big images and/or lots of products to import, this probably isn't the best way to do it. PHP timeouts are much more likely to happen in that case.

frazras's picture
Offline
Joined: 05/29/2008
Juice: 37
Lots of images

I have close to 400 images 315 x 315 pixels currently the are on my hard drive, i want to use them, should I drop them in the files directory and the put a link in the image field to http://mysite.com/files/ProductImage001.jpg in my XML file?

Will that automatically hook them up with image cache and do all the resizing? If not could you outline step by step the way to get my images uploaded and assigned to the products. By the way I have all the products uploading fine in the XML.

ñull@drupal.org's picture
Offline
Joined: 01/26/2009
Juice: 114
Re: Lots of images

frazras, did you have any success with this? Did you find the answer to your question?