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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -