Highlights
- Click on a gallery image to tag a product, drag the point to move it.
- Each image of the gallery keeps its own hotspots.
- Points stay in place at any image size.
- Unpublished products never reach your storefront.
- Hotspots come with the product and its price in the Store API.
Description
Shopper Media Hotspots lets you tag products on the images of your catalog, so customers can shop the look from a single photo. It adds a Hotspots tab to the product edit screen of the Shopper admin panel.
What you get
- A visual editor: click anywhere on a gallery image to tag a product, drag a point to move it, confirm before removing it.
- Tagging per image: switch between the images of the gallery, each one keeps its own points and shows how many it carries.
- Positions saved as fractions of the image, so a point stays in place at any display size.
- A product can be tagged once per image. Tagging it again moves its point.
- Points on an unpublished product are dimmed in the admin and left out of the storefront.
- When an image or a tagged product is deleted, its hotspots go with it.
Ready for your storefront
- A serialization concern adds the hotspots to the images of your product resource in the Shopper Store API.
- Every endpoint that returns a product carries them: listing, detail, category includes and cart lines.
- Each hotspot comes with the tagged product: name, slug, thumbnail and price.
- The price follows the currency of the request, and falls back to the default currency of the store.
- The relation is registered on the product model, ready to eager-load on listings.
Requirements
- Shopper 3.0
- PHP 8.3 or higher
- Laravel 12 or 13
Installation
After purchase, your Pakua account shows your license key and the Composer commands with the key filled in. Require shopper/media-hotspots, then run php artisan shopper:media-hotspots:install: it runs the migrations and registers the add-on in your AppServiceProvider.
