Implemented loading images to the product card using this Demo plugin.
Plug on gita
How can I substitute in the field previews previously uploaded images when editing a product card, to further add or delete images?
PHP Array of images with paths and sizes available. How to transfer it to JS-processing (Mb JSON type)?
Or send on the right path please ...
$("#image").fileinput({ uploadUrl: '#', showPreview: true, browseOnZoneClick: true, browseLabel: 'Выбрать изображения …', removeLabel: 'Очистить', removeTitle: 'Удалить все файлы', previewFileType: "image", allowedFileTypes: ["image"], allowedFileExtension: ['jpg', 'jpeg', 'png'], overwriteInitial: false, showCaption: false, showRemove: true, showUpload: false, maxFilePreviewSize: 1000, maxFileSize: 1000, maxFileNum: 15, initialPreviewAsData: true, initialPreview: [ <?php if (! empty($imgArray)) : ?> <?php foreach ($imgArray as $image) : ?> '<?= 'http://zend-mvc.loc/'. $image; ?>', <?php endforeach; ?> <?php endif; ?> ] });