Magento - importing images from a 3rd party XML file -


i wondering how i'd upload images 3rd party xml feed use products images?

i've seen use of addimagetomediagallery() unsure i'd need do.

my assumptions are:

1) need download images folder xml feed 2) pass image path addimagetomediagallery method , set image, small_image , thumbnails 3) call method

thanks

ok, solution download images using curl , save them to:

media/import

then use following:

$product->addimagetomediagallery(mage::getbasedir('media') . ds . 'import/' .  $filename, array('image', 'small_image','thumbnail'), false, false); 

where $filename filename of image on server.

thanks looked!


Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -