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
Post a Comment