Shop the Look for OpenCart 4 and 3: Shoppable Images with Product Hotspots (Free Extension)
A free OpenCart 4 and 3 module that turns lifestyle photos into shoppable images with product hotspots, price cards and Add to Cart buttons.

A lifestyle photo sells better than a grid of product thumbnails, but in a default OpenCart store that photo is just a banner. A shopper sees a desk with a monitor, a laptop and a camera, wants the camera, and then has to go and search for it. Most don’t.
Shop the Look fixes that. It’s a free OpenCart module that puts clickable hotspots on any image. Each dot opens a small card with the product photo, price and an Add to Cart button, right on top of the picture. We built it for OpenCart 4.1.0.4 and OpenCart 3.0.5.1 and tested both builds on a demo store.
Download Shop the Look
- OpenCart 4.1.0.4: shopthelook.ocmod.zip for OpenCart 4
- OpenCart 3.0.5.1: shopthelook.ocmod.zip for OpenCart 3

What the Shop the Look module does
- Hotspots on any image. Upload a room shot, a flat lay or a banner, click the image in the admin to drop a dot, and pick the product for that dot.
- A product card on click. The card shows the product image, name, price (and the special price when there is one) and an Add to Cart button. The product is added through OpenCart’s normal cart, so the header cart updates without a page reload.
- Products with required options are handled. If a product has a required option, such as the required Select option on the demo Canon EOS 5D, the button says Choose options and opens the product page instead of failing.
- Works on phones. The image scales down, the dots stay on the same spot, and the card moves sideways so it never runs off the screen.
- As many looks as you want. It’s a multi-instance module, like OpenCart’s Banner or HTML module. Make one look per season or per category and place each one on any layout.
- Respects your store settings. Disabled products are skipped, and if Login Display Prices is on, guests don’t see prices on the card either.
Install Shop the Look in OpenCart 4
- Go to Extensions > Installer, upload
shopthelook.ocmod.zipand click the green + button next to it. - Go to Extensions > Extensions, choose Modules in the filter, find Shop the Look and click the green + to install it.
- Click the blue + (Add) button next to it to create your first look.
- Fill in the form (see the next section) and click Save.
- Go to Design > Layouts, edit a layout such as Home, add Shop the Look > your module name to a position like Content Top, and save.
Install Shop the Look in OpenCart 3
- Go to Extensions > Installer and upload
shopthelook.ocmod.zip. There’s no OCMOD modification, so you don’t need to refresh Extensions > Modifications. - Go to Extensions > Extensions, choose Modules, and click the green + (Install) button next to Shop the Look.
- Click the blue pencil (Edit) button on the Shop the Look row to create a look, fill in the form and save. Each saved look then shows up as its own row underneath.
- Add it to a layout in Design > Layouts, the same way as in OpenCart 4.
Build your first look

- Module Name: only shown in the admin, for example “Desk setup look”.
- Heading: optional text above the image on the storefront, such as “Shop this desk setup”.
- Image: pick it from the image manager. Wide images around 1600 px work best. As soon as you choose one, it appears in the hotspot editor.
- Image Width (px): the width the image is resized to. The height always keeps the original ratio. The default is 1200.
- Hotspots: click anywhere on the image to add a dot. Each dot gets a row with its Left (%) and Top (%) position and a product autocomplete. Drag a dot to fine-tune it, or type exact percentages.
- Status: turn it on.
Positions are saved as percentages, not pixels. That’s what keeps a dot on the camera lens whether the image is 1200 px wide on a desktop or 390 px wide on a phone.

How it works
The storefront part is a normal OpenCart module controller. The layout passes the saved settings in, and the controller loads each product with getProduct(), which only returns enabled products in the current store. To keep the dots in the right place, the image is resized to the chosen width while keeping its original ratio:
// Keep the original ratio, so hotspot percentages land on the same spot at any size.
[$original_width, $original_height] = getimagesize(DIR_IMAGE . $file);
$width = min(max(200, (int)($setting['width'] ?? 1200)), $original_width);
$height = (int)round($width * $original_height / max(1, $original_width));
Before showing an Add to Cart button, it checks whether the product has a required option. If it does, the card links to the product page instead, because OpenCart would reject a cart add without the option:
// Products with required options can't go straight into the cart: send shoppers to the product page.
$has_options = false;
foreach ($this->model_catalog_product->getOptions($product_info['product_id']) as $option) {
if ($option['required']) {
$has_options = true;
break;
}
}
No core files are changed. OpenCart 4 stores each look in the oc_module table like any other module instance, and OpenCart 3 does the same.
What’s different in the OpenCart 3 build

- The templates use Bootstrap 3 and Font Awesome 4, which OpenCart 3 ships with.
- The Add to Cart button calls OpenCart 3’s own
cart.add()JavaScript, so the cart button in the header updates the usual way. In OpenCart 4 the card posts tocheckout/cart.addand refreshes the header cart. - The admin editor works the same: click to add, drag to move, autocomplete to pick the product.

Tips and limitations
- Leave some space around the dots. The card is 260 px wide (220 px on phones). Dots close to an edge still work, because the card slides sideways to stay on screen, but the photo looks cleaner with a little room.
- Use real photos of the products. A shopper who clicks a lamp and gets a different lamp loses trust fast.
- One image per look. For a slider of looks, create several modules and place them one after another, or rotate them by season.
- Disabled products disappear. If you disable a product, its dot is hidden automatically. If no products are left, the whole module hides.
Related posts
- Auto related products for OpenCart 4
- Social share buttons module for OpenCart 4
- OpenCart 4 OCMOD tutorial: develop an extension
- OpenCart events by examples
Please let us know if you have any questions or suggestions, and subscribe to our YouTube channel for more OpenCart video tutorials. You can also find us on Twitter and Facebook.







