Chat on WhatsApp

Custom Product Image Gallery for Magento 2

Custom Product Image Gallery for Magento 2 — replace the default product media gallery with a fast, configurable gallery supporting horizontal, vertical and grid thumbnail layouts, inner and lens image zoom, fullscreen lightbox, responsi…

Magento 2.4.6–2.4.8 PHP 8.1–8.4 Hyva + Luma Ready Free

Key Features:

  • Configurable Thumbnail Layouts
  • Image Zoom Modes
  • Responsive Navigation
  • Theme Support

Additional Services

$0.00
In stock
SKU
panth-productgallery
Links
Lifetime Updates Every Magento release
1-Year Free Support Email + WhatsApp
Adobe-Certified Magento 2 Developer
Free Forever No subscription, no upsell
What you get

Everything in the box

Built-in from day one. No add-ons, no upsell, no licence keys to renew.

Configurable Thumbnail Layouts

Horizontal layout — traditional strip of thumbnails below the main image

Image Zoom Modes

Inner zoom — magnify the image in place on hover, no overlay required

Responsive Navigation

Prev/next arrows with keyboard support (arrow keys, Escape to close)

Theme Support

Hyva compatible — Alpine.js components, Tailwind CSS utility classes, no jQuery

SEO & Accessibility

Alt text from Panth Advanced SEO — optional soft dependency; when installed, every image pulls its AI-generated alt text automatically

Performance

No jQuery on Hyva — pure Alpine.js, minimal JS payload

Custom Product Image Gallery for Magento 2. Panth Product Gallery for Magento 2 — configurable thumbnail layouts (horizontal, vertical, grid), inner zoom and lens zoom, fullscreen lightbox, responsive navigation, full Hyva + Luma support, and optional integration with Panth Advanced SEO for automatic image alt text. Compatible with Magento 2.4.4 - 2.4.8 and PHP 8.1 - 8.4.

What it doesPanth Product Gallery for Magento 2 — configurable thumbnail layouts (horizontal, vertical, grid), inner zoom and lens zoom, fullscreen lightbox, responsive navigation, full Hyva + Luma support, and optional integration with Panth Advanced SEO for automatic image alt text.
🎯Best forStorefronts that need polished merchandising without a custom-build budget
CompatibilityMagento 2.4.4 – 2.4.8 · PHP 8.1 – 8.4 · Hyva + Luma
🔓LicenseFree forever · No subscription · MIT-style open source

Engineered for magento 2 product gallery, magento 2 image zoom, magento 2 lightbox — ships with sensible defaults, full admin controls, and zero JavaScript bloat. Works identically on Hyva and Luma; passes Adobe MEQP with zero severity-10 violations.

magento 2 product gallerymagento 2 image zoommagento 2 lightboxmagento 2 product imagesmagento 2 gallery widgetmagento 2 thumbnail layout

Configurable Thumbnail Layouts

  • Horizontal layout — traditional strip of thumbnails below the main image
  • Vertical layout — thumbnails on the side rail (desktop), collapsing to a horizontal strip on mobile
  • Grid layout — Amazon/Etsy-style multi-column grid showing all images at once
  • Thumbnail count & size — configurable number of visible thumbnails and pixel dimensions
  • Active state styling — border, shadow, and scale transitions for the selected thumbnail

Image Zoom Modes

  • Inner zoom — magnify the image in place on hover, no overlay required
  • Lens zoom — floating magnifier lens with a side preview window
  • Fullscreen lightbox — click to open the full-resolution image in a modal with swipe, pinch-zoom, and keyboard navigation
  • Zoom level control — adjustable zoom factor (1.5x to 4x)
  • Touch-friendly — pinch-zoom and swipe gestures on mobile and tablet

Responsive Navigation

  • Prev/next arrows with keyboard support (arrow keys, Escape to close)
  • Dot indicators and image counter (e.g. "3 / 12")
  • Swipe navigation on touch devices
  • Auto-slide option with configurable interval
  • Infinite loop or stop-at-ends behaviour

Theme Support

  • Hyva compatible — Alpine.js components, Tailwind CSS utility classes, no jQuery
  • Luma compatible — Knockout.js bindings that cleanly replace the default gallery.phtml
  • Automatic theme detection — via Panth\Core\Helper\Theme, the correct template is served without any manual switching
  • Child-theme safe — templates can be overridden from your own custom theme

SEO & Accessibility

  • Alt text from Panth Advanced SEO — optional soft dependency; when installed, every image pulls its AI-generated alt text automatically
  • Semantic HTML — proper <figure>, <img>, aria-label, and role attributes
  • Keyboard navigable — full keyboard support (Tab, Enter, arrows, Escape)
  • Lazy loadingloading="lazy" and decoding="async" on non-primary images
  • Structured image URLs — preserves Magento media paths for CDN compatibility

Performance

  • No jQuery on Hyva — pure Alpine.js, minimal JS payload
  • CSS-only transitions where possible — hardware-accelerated transforms
  • Lazy-loaded thumbnails — off-screen thumbs defer loading
  • Optimized for Core Web Vitals — minimal CLS, fast LCP on the main image

Requirement Versions Supported
Magento Open Source 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce Cloud 2.4.4 — 2.4.8
PHP 8.1.x, 8.2.x, 8.3.x, 8.4.x
Hyva Theme 1.3+ (fully supported)
Luma Theme Native support
Panth_Core Required (free)
Panth_AdvancedSEO Optional (soft dependency for alt text)

Tested on:

  • Magento 2.4.8-p4 with PHP 8.4 (Hyva 1.3.x)
  • Magento 2.4.7 with PHP 8.3 (Luma)
  • Magento 2.4.6 with PHP 8.2

Composer Installation (Recommended)

composer require mage2kishan/module-productgallery
bin/magento module:enable Panth_Core Panth_ProductGallery
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush

Manual Installation via ZIP

  1. Download the latest release ZIP from Packagist or the Adobe Commerce Marketplace
  2. Extract the contents to app/code/Panth/ProductGallery/ in your Magento installation
  3. Run the same commands as above starting from bin/magento module:enable

Verify Installation

bin/magento module:status Panth_ProductGallery
# Expected output: Module is enabled

After installation, navigate to:

Admin → Stores → Configuration → Panth Extensions → Product Gallery

All settings live at Stores → Configuration → Panth Extensions → Product Gallery.

General

Setting Default Description
Enable Module Yes Master toggle for the custom gallery. Disable to fall back to Magento's default gallery.
Thumbnail Layout Horizontal Choose Horizontal, Vertical, or Grid.
Thumbnail Count 5 Visible thumbnails before scrolling (horizontal/vertical).
Thumbnail Size 80px Pixel dimensions for each thumbnail.

Zoom

Setting Default Description
Zoom Mode Inner Choose Inner, Lens, Lightbox, or Disabled.
Zoom Level 2.0x Magnification factor (1.5x - 4x).
Enable Fullscreen Lightbox Yes Click to open the full-size image in a modal.
Enable Pinch Zoom (mobile) Yes Pinch-to-zoom inside the lightbox.

Navigation

Setting Default Description
Show Prev/Next Arrows Yes Display navigation arrows on the main image.
Show Dot Indicators No Show a row of dot indicators below the main image.
Show Image Counter Yes Show "3 / 12" counter overlay.
Enable Keyboard Navigation Yes Arrow keys, Escape, Enter.
Enable Auto-Slide No Auto-advance the main image.
Auto-Slide Interval 5s Seconds between slides when auto-slide is on.

Panth Product Gallery has a soft dependency on Panth Advanced SEO. When Advanced SEO is installed and enabled, the gallery automatically uses its AI-generated image alt text for every <img> tag — no manual alt text management required.

Without Advanced SEO, the gallery falls back to Magento's standard image label / product name pattern. You can still use the gallery fully without installing Advanced SEO; the integration is purely additive.


Does this replace Magento's default product gallery?

Yes, on the product detail page. When the module is enabled, the default gallery.phtml is replaced with the Panth gallery (one template for Hyva, another for Luma — chosen automatically).

Does it work with configurable product swatches?

Yes. When a customer picks a colour/size swatch, the gallery swaps to the correct variant images using Magento's standard gallery JSON payload.

Does it work with video (YouTube / Vimeo)?

Yes. Magento product video entries are rendered inline with a play-button thumbnail; clicking opens the video in the lightbox.

Is Hyva compatible?

Yes — fully. The module ships an Alpine.js implementation that does not depend on jQuery or Knockout, and installs automatically when the store theme is Hyva.

Does it affect Core Web Vitals?

Positively. The Hyva implementation uses a minimal JS payload and lazy-loads thumbnails, which typically improves LCP and reduces CLS versus the default gallery.

Can I override the template in my child theme?

Yes. Copy view/frontend/templates/product/view/gallery.phtml (Luma) or the equivalent file under the Hyva area into your own theme and customize freely.

Does it support multi-store and multi-language?

Yes. All configuration respects Magento's scope hierarchy (default → website → store view) and all user-facing strings are translatable via Magento's __() function.

Does it require Panth Advanced SEO?

No, it is an optional soft dependency. Advanced SEO only improves alt-text quality; the gallery works standalone.


Channel Contact
Email kishansavaliyakb@gmail.com
Website kishansavaliya.com
WhatsApp +91 84012 70422
GitHub Issues github.com/mage2sk/module-productgallery/issues
Upwork (Top Rated Plus) Hire Kishan Savaliya
Upwork Agency Panth Infotech

Response time: 1-2 business days.

Need Custom Magento Development?

Looking for custom gallery layouts, PDP redesigns, Hyva migration, or performance optimization? Get a free quote in 24 hours:

     


Built and maintained by Kishan Savaliyakishansavaliya.com — a Top Rated Plus Magento developer on Upwork with 10+ years of eCommerce experience.

Panth Infotech is a Magento 2 development agency specializing in high-quality, security-focused extensions and themes for both Hyva and Luma storefronts. Our extension suite covers SEO, performance, checkout, product presentation, customer engagement, and store management — over 34 modules built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.

Browse the full extension catalog on the Adobe Commerce Marketplace or Packagist.


More Information
Module Category Catalog & Products
Best For All Sizes
FAQ

Frequently Asked Questions

Does this replace Magento's default product gallery?

Yes, on the product detail page. When the module is enabled, the default gallery.phtml is replaced with the Panth gallery (one template for Hyva, another for Luma — chosen automatically).

Does it work with configurable product swatches?

Yes. When a customer picks a colour/size swatch, the gallery swaps to the correct variant images using Magento's standard gallery JSON payload.

Does it work with video (YouTube / Vimeo)?

Yes. Magento product video entries are rendered inline with a play-button thumbnail; clicking opens the video in the lightbox.

Is Hyva compatible?

Yes — fully. The module ships an Alpine.js implementation that does not depend on jQuery or Knockout, and installs automatically when the store theme is Hyva.

Does it affect Core Web Vitals?

Positively. The Hyva implementation uses a minimal JS payload and lazy-loads thumbnails, which typically improves LCP and reduces CLS versus the default gallery.

Can I override the template in my child theme?

Yes. Copy view/frontend/templates/product/view/gallery.phtml (Luma) or the equivalent file under the Hyva area into your own theme and customize freely.

Does it support multi-store and multi-language?

Yes. All configuration respects Magento's scope hierarchy (default → website → store view) and all user-facing strings are translatable via Magento's __() function.

Does it require Panth Advanced SEO?

No, it is an optional soft dependency. Advanced SEO only improves alt-text quality; the gallery works standalone.


How is this different from a traditional antivirus?

Panth Malware Scanner is built specifically for Magento 2 filesystems — it understands the directory layout, knows which folders are writable from the frontend, and ships signatures tuned for Magento-targeted threats (Magecart skimmers, PolyShell webshells, admin-layout injection). Traditional AV tools scan everything with generic signatures and produce noise.

Does Panth Advanced Cart work with Hyva?

Yes. The module ships dedicated Hyva templates built with Alpine.js and Tailwind CSS. Theme detection is automatic via Panth_Core.

Do I have to pay for Panth Core?

No. Panth Core is completely free and will remain free forever. It is the foundation library that other (paid) Panth extensions depend on.

Will this overwrite my custom image labels?

No. Merchant-authored labels (anything other than empty, the product name, Image, main product photo, or the raw filename) are preserved. Only Magento's default placeholders get upgraded to template output.

Do I need a WhatsApp Business account?

No — any valid WhatsApp number works. However, a WhatsApp Business account is strongly recommended for commercial use (auto-replies, labels, catalog).

Does this replace Magento's default product gallery?

Yes, on the product detail page. When the module is enabled, the default gallery.phtml is replaced with the Panth gallery (one template for Hyva, another for Luma — chosen automatically).

How many forms can I create?

Unlimited. Each form has a unique identifier and its own submissions scope.

Will this slow down my storefront?

No. The head block is cacheable="true" so the full JSON-LD payload is baked into full-page cache. Providers only run on uncached renders; cached hits serve the pre-rendered <script> tag with zero PHP evaluation.

Does Panth Mega Menu work on both Hyva and Luma?

Yes. The module ships with two purpose-built templates — Alpine.js + Tailwind for Hyva and vanilla JS for Luma — and auto-switches based on your active storefront theme.

Does Panth Footer replace the default Magento footer?

Yes. When enabled, Panth Footer takes over the footer.container block and renders its own configurable footer. You can disable it any time to restore the default footer.

Need this customised?

Talk to Kishan directly — written quote, scope and timeline within 24 hours. No sales call.

WhatsApp

Custom Product Image Gallery for Magento 2

$0.00
Step up

Customers usually upgrade to