← For Stores
Widget
Compatibility Widget
Show "Does this fit your gun?" on your accessory product pages.
Does this fit your gun?
Search your gun model...
✓ Compatible with Glock G19 Gen5
12 compatible accessories
Installation
Add this script tag to your accessory product page template:
<script src="https://gunupdate.com/gunupdate-widget.js" data-store="YOUR_API_KEY" data-mode="compatibility" data-product-type="accessory"> </script>
Platform guides
Shopify
Edit theme → Sections → Product page → Add custom HTML block. Paste the script tag. The widget auto-detects Shopify and integrates with your cart.
WooCommerce
Add to your single-product.php template or use a plugin like "Insert Headers and Footers". Place inside the product summary area.
Custom store
Paste the script tag anywhere on your product page. The widget renders inline. Set data-container="#id" to place it in a specific element.
Options
| Attribute | Description |
|---|---|
| data-store | Your API key (required) |
| data-mode | "compatibility" for this widget |
| data-exclude | Comma-separated product IDs to hide |
| data-categories | Only show these categories (e.g. "optics,grips") |
| data-theme | "dark", "light", or "auto" (default) |
| data-container | CSS selector to mount widget in specific element |
Other widgets