I want to add images to my product description content block but I don't want these specific images to appear in the product gallery ('image', 'small_image', 'thumbnail').
To add regular images I do it the following way:
$product->addImageToMediaGallery($imagePath, array('image', 'small_image', 'thumbnail'), false, false); $product->save();
For my description I could do something like that:
$descr = "<img src='".$media_path."' />"; $product->setDescription($desc);
And get the path of images using:
$productimages = $product->getMediaGalleryImages();
Is there any other type of image I could use to achieve my goal ? Or what way should I use to upload these image and reuse them in my product description ?