1.use function addImageToMediaGallery addImageToMediaGallery (line 956) Add image to media gallery access: public void addImageToMediaGallery (string $file, , , ) string $file: file path of image in file system string|array $mediaAttribute: code of attribute with type 'media_image', leave blank if image...