I just want to assign product image from remote image url.

One more thing is i can't able to download image in my server because total size of image is : over 1TB

my code is below :

$imageUrl = 'Product image remote url';

$product->addImageToMediaGallery($imageUrl, array('image','small_image','thumbnail','swatch_image'), false, false); 

using this code i getting "The image does not exist." error.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.