Swiper Carousel for the nopCommerce Product Thumbnail Strip
Product Image Slider is a nopCommerce widget plugin that turns the product details page thumbnail strip into a horizontally scrollable Swiper carousel with prev/next arrows. Shoppers browse every product image without the page stretching, the main image updates on click, and the carousel adapts automatically to attribute-combination image filtering as the shopper changes product options.
What It Does
- Swiper carousel — converts the existing .picture-thumbs list in place, showing 3 slides per view with 10px spacing and slide-to-clicked-slide navigation
- Navigation arrows — prev/next arrows sit outside the carousel overflow area so partial slides are not revealed
- Click-to-swap — clicking a thumbnail updates the main product image src, title, alt and the lightbox anchor href
- Attribute-combination filtering — rebuilds the carousel via the Swiper API on the product_attributes_changed event to show only allowed pictures
- Lightbox integration — re-initializes the MagnificPopup lightbox gallery after the carousel rebuilds for attribute combinations
- Theme-aware rendering — resolves the slider view and stylesheet through the active theme before falling back to plugin defaults
- Auto-suppression — renders nothing when a product has one image or none, or when the plugin is disabled
- Enable/disable toggle — controls whether the widget zone is registered at all, at zero render cost when off
- Debug logging — writes plugin activity to a log file that auto-truncates once it exceeds 10 MB, with download and clear actions on the configuration page
- Admin menu integration — adds a Product Image Slider entry under the shared FoxNetSoft admin menu node
How It Works
- Install the plugin and enable it on the configuration page.
- The ProductDetailsAfterPictures widget zone wraps the existing thumbnail strip into a Swiper carousel automatically.
- Shoppers scroll with prev/next arrows and click a thumbnail to swap the main image.
- Selecting a product attribute combination rebuilds the carousel to show only the matching pictures.
- Store owners can override the slider view or stylesheet per theme.
Specs & Requirements
- nopCommerce — 5.00, 4.90
- Plugin type — Misc/Widget; renders into the ProductDetailsAfterPictures storefront widget zone only, with no admin catalog integration
- Requires — the default nopCommerce thumbnail markup (.picture-thumbs, .thumb-item) and the jQuery and MagnificPopup lightbox already bundled with nopCommerce; ships its own Swiper library (swiper-bundle.min.js/css)
- Store setup — enable the plugin on its configuration page to activate the widget zone