Is there a way to add images to a product without loading the whole product? updateAttributes() is definitely fast when updating a product but when adding an image to a product, this function is needed:

$product->addImageToMediaGallery($_filepath, array('image', 'small_image', 'thumbnail'), true, false);
  • Which Magento version are you referring to ? – Raphael at Digital Pianism Jun 22 '16 at 7:19
  • It's for Magento v1.x, v1.14.1.0 to be specific. – user1240207 Jun 22 '16 at 7:28
  • Is it the load or the save that is actually slowing you down? You should be able to just set the product ID on the model without loading it to add images, but saving may be slow if your indexers are set to on save – Robbie Averill Jun 22 '16 at 7:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.