Categories
CMS Magento Mastering Development

Update Magento2 Catalog Images on Swatch Selected

Basically i written my own gallery page so when ever a configurable product with color swatches is available , it is not showing different color images when user selects that particular swatch. <?php /** * * */ /** * Product media data template * * @var $block */ $gallery_images = json_decode($block->getGalleryImagesJson()); $_product = $block->getProduct(); $videoFile=$_product->getData(‘agreement_file’); […]