People who code: we want your input. Take the Survey
1

* Product media data template * * @var $block \Magento\Catalog\Block\Product\View\Gallery */ ?> <?php $images = $block->getGalleryImages()->getItems(); $mainImage = current(array_filter($images, function ($img) use ($block) { return $block->isMainImage($img); })); if (!empty($images) && empty($mainImage)) { $mainImage = $...


1

Add your images under /var/import/images/product_images Add this path in the images file directory field during upload the file If you have any question please let me know.


1

/** * Product media data template * * @var $block \Magento\Catalog\Block\Product\View\Gallery */ ?> <?php $images = $block->getGalleryImages()->getItems(); $mainImage = current(array_filter($images, function ($img) use ($block) { return $block->isMainImage($img); })); if (!empty($images) && empty($mainImage)) { $mainImage ...


Only top voted, non community-wiki answers of a minimum length are eligible