Magento 2

Magento 2 Integration

Medium · 5 minutes setup · Download Plugin

Installation Guide

Install our Magento 2 module via zip upload or Composer. The widget renders automatically on product pages.

Download Module

gunupdate-magento2.zip — v1.0.0

Download .zip

Method A: Manual Install

1 Extract Files

Unzip and copy to your Magento installation:

unzip gunupdate-magento2.zip -d app/code/GunUpdate/Widget/

2 Enable & Deploy

php bin/magento module:enable GunUpdate_Widget
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush

Method B: Composer (coming soon)

composer require gunupdate/magento2-widget
php bin/magento setup:upgrade
php bin/magento cache:flush

3 Configure

Go to Stores → Configuration → General → GunUpdate Widget. Enable the module, enter your API key, select mode and theme. Save & flush cache.

Widget Modes

compatibility

"Does this fit my gun?" — customer uploads photo or selects model, gets yes/no answer + compatible products from your store.

builder

Interactive gun builder — clickable hotspot zones on a gun silhouette. Customers explore accessory categories visually.

configurator

Full experience — build + compatibility check + smart recommendations. Best for stores with 50+ gun accessories.

Data Attributes Reference

Attribute Required Description
data-storeYesYour API key
data-product-idYesProduct ID on your platform
data-product-nameNoProduct name for better matching
data-product-skuNoSKU for precise matching
data-modeNocompatibility | builder | configurator
data-themeNolight | dark | auto
data-platformNoPlatform identifier for analytics
data-langNoLanguage code (default: en)

Requirements

  • • Magento 2.4+
  • • PHP 8.1+
  • • Composer access
  • • GunUpdate API key

Need an API key?

Free plan — 100 checks/month. No card required.

Get Free API Key

Need Help?

Our team can help with installation.

support@gunupdate.com