Widget Installation
Install the Notify Me widget on your Shopify store in minutes
Show all sections (31)
- Checking Installation
- Manual Installation (Advanced)
- Steps for Manual Installation
- Customizing the Widget
- Basic Customization
- Preview Changes
- Widget Behavior
- When Widget Shows
- When Widget Hides
- Multi-Variant Products
- Theme Compatibility
- Fully Compatible Themes
- Partial Compatibility
- Mobile Experience
- Translation & Localization
- Multi-Language Support
- Performance
- Widget Loading
- Caching Friendly
- Troubleshooting
- Widget Not Showing
- Widget Shows But Doesn't Work
- Widget Looks Broken
- Testing the Widget
- Before Going Live
- Test Mode
- FAQ
- Next Steps
The DemandLoop widget automatically appears on out-of-stock product pages, replacing the "Add to Cart" button with "Notify Me When Available." No coding required.
Requirements
- Shopify store with admin access
- DemandLoop app installed from the Shopify App Store
- A Shopify Online Store 2.0 compatible theme (for automatic installation)
- Available on all plans (Free and Growth)
Automatic Installation (Recommended)
How It Works
When you install DemandLoop, the widget is automatically added to your theme using Shopify's Theme App Extensions.
What happens:
- You install DemandLoop from Shopify App Store
- App asks for theme access permission
- You approve
- Widget is instantly live on all product pages
Time to install: Under 2 minutes
Checking Installation
To verify the widget is working:
- Find an out-of-stock product in your store
- Visit the product page (in your live store, not admin)
- You should see "Notify Me When Available" button
If you don't see it: Check Troubleshooting section below.
Manual Installation (Advanced)
Only use manual installation if:
- You have a heavily customized theme
- Automatic installation didn't work
- You're using vintage/unsupported themes
Steps for Manual Installation
1. Go to Settings → Theme Customization
In DemandLoop dashboard:
- Click "Settings" in sidebar
- Select "Widget Settings"
- Copy the widget code snippet
2. Edit Your Theme Code
In Shopify Admin:
- Go to Online Store → Themes
- Click Actions → Edit code
- Find
sections/product-template.liquid(or similar)
3. Add Widget Code
Paste this where "Add to Cart" button is located:
{% if product.available %}
<!-- Existing Add to Cart button -->
<button type="submit">Add to Cart</button>
{% else %}
<!-- DemandLoop Widget -->
<div data-demandloop-widget
data-product-id="{{ product.id }}"
data-variant-id="{{ variant.id }}">
</div>
{% endif %}
4. Save and Test
- Save theme changes
- Visit out-of-stock product page
- Verify widget appears
Customizing the Widget
Basic Customization
Go to: Settings → Widget Settings
What you can customize:
Button Text
Default: "Notify Me When Available"
Custom: "Join the Waitlist" or "Get Restock Alert"
Button Colors
- Primary color (button background)
- Text color
- Border color
- Hover state colors
Modal Appearance
- Header text: "Get notified when this item is back in stock"
- Success message: "Thanks! We'll email you when it's available"
- Input placeholder: "Enter your email address"
Preview Changes
Use the Preview button to see changes before saving:
- Make customization changes
- Click "Preview"
- See live preview in modal
- Save when satisfied
Widget Behavior
When Widget Shows
The widget automatically appears when:
- Product inventory = 0
- Product is published and active
- Variant is available for purchase (not discontinued)
When Widget Hides
Widget is hidden when:
- Product has inventory available
- Product is archived/draft
- Variant is discontinued
- Product type is excluded in settings
Multi-Variant Products
For products with multiple variants (sizes, colors):
Behavior:
- Widget tracks inventory per variant
- Shows "Notify Me" only for out-of-stock variants
- If Red/Small is out but Red/Medium is available, customer can:
- Buy Red/Medium (Add to Cart shows)
- Subscribe to Red/Small (Notify Me shows)
How it looks:
Size selector: [S] [M] [L]
Color selector: [Red] [Blue] [Black]
Selected: Red / Small
Inventory: 0
Button: "Notify Me When Available" ← widget
Selected: Red / Medium
Inventory: 5
Button: "Add to Cart" ← default Shopify
Theme Compatibility
Fully Compatible Themes
DemandLoop works automatically with all modern Shopify themes:
Shopify Official Themes
- Dawn (2.0+)
- Sense
- Studio
- Craft
- All Online Store 2.0 themes
Popular Third-Party Themes
- Impulse
- Turbo
- Prestige
- Empire
- District
Custom Themes
- Built on Shopify 2.0 architecture
- Uses standard Liquid structure
Partial Compatibility
Some older themes may need manual installation:
- Themes built before 2021
- Heavily customized themes
- Themes with non-standard product templates
If your theme isn't working: Contact support with your theme name, and we'll help with setup.
Mobile Experience
The widget is fully responsive and works perfectly on:
- iPhone/iOS devices
- Android devices
- Tablets (iPad, etc.)
Mobile optimizations:
- Touch-friendly button size (min 44x44px)
- Simplified modal layout
- Optimized input fields for mobile keyboards
- Fast loading (< 100kb JavaScript)
Translation & Localization
Multi-Language Support
If you sell in multiple languages using Shopify Markets:
Automatic translation:
- Widget detects customer's language
- Displays in appropriate language automatically
- Supports 15+ languages
Supported languages:
- English, Spanish, French, German, Italian
- Portuguese, Dutch, Polish, Czech
- Swedish, Danish, Norwegian, Finnish
- Japanese, Korean
Custom translations: Go to Settings → Widget Settings → Translations to customize text for each language.
Performance
Widget Loading
Load time: < 50ms
File size: 85kb (compressed)
Impact on store: Minimal (loads async, non-blocking)
How it loads:
- Page loads normally
- Widget script loads in background
- Widget appears when ready
- No impact on "Add to Cart" functionality
Caching Friendly
Widget works with all caching solutions:
- Shopify CDN
- Cloudflare
- Third-party CDN providers
Troubleshooting
Widget Not Showing
Check these items:
1. Product is actually out of stock
- Go to Shopify Admin → Products
- Verify inventory = 0 for the variant
- Check if "Track quantity" is enabled
2. Theme app extension is enabled
- Go to Shopify Admin → Online Store → Themes
- Click "Customize"
- Check App Embeds section
- Ensure DemandLoop is toggled ON
3. Widget is enabled in settings
- Go to DemandLoop Settings
- Check "Widget Enabled" toggle is ON
- Verify product isn't excluded
4. Browser cache
- Hard refresh page (Cmd+Shift+R on Mac, Ctrl+Shift+R on Windows)
- Try incognito/private browsing mode
- Clear browser cache
5. Theme conflicts
- Check browser console for JavaScript errors (F12)
- Look for conflicting apps
- Try disabling other apps temporarily
Widget Shows But Doesn't Work
If clicking button does nothing:
Check these:
- JavaScript errors in console (F12)
- Ad blockers or privacy extensions blocking widget
- Theme JavaScript conflicts
- Customer's browser outdated
Solution: Contact support with:
- Theme name and version
- Browser name and version
- Screenshot of issue
- Console error messages (if any)
Widget Looks Broken
Visual issues (wrong colors, misaligned):
Common causes:
- Theme CSS conflicts
- Custom CSS overriding widget styles
- Recent theme updates
Quick fixes:
- Reset widget customization to defaults
- Clear theme cache
- Check for theme updates
- Add custom CSS to fix specific issues
Custom CSS example:
/* Fix widget alignment */
[data-demandloop-widget] {
margin-top: 1rem;
width: 100%;
}
Add this in Settings → Widget Settings → Custom CSS
Testing the Widget
Before Going Live
Test checklist:
- Widget appears on out-of-stock product
- Modal opens when button clicked
- Email subscription works
- Confirmation email arrives
- Widget hides when product in stock
- Mobile experience is good
- Widget matches brand colors
Test Mode
Use test mode to verify without affecting real customers:
- Go to Settings → Widget Settings
- Enable "Test Mode"
- Test widget (subscriptions go to test inbox)
- Disable test mode when ready
FAQ
Q: Can I use a different button text?
Yes! Go to Settings → Widget Settings → Button Text and customize.
Q: Does the widget slow down my store?
No. Widget loads asynchronously and has minimal performance impact (< 85kb).
Q: Can customers subscribe without seeing the widget?
No. Widget must be visible on product page for customers to subscribe.
Q: What if I have multiple "out of stock" apps?
Only one can control the button. Disable other back-in-stock apps to avoid conflicts.
Q: Can I hide widget on specific products?
Yes. Go to Settings → Widget Settings → Excluded Products and add product IDs.
Q: Does widget work with subscription products?
Yes, but we recommend using widget for one-time purchases and handling subscriptions separately.
Q: Can I A/B test different widget designs?
Not built-in, but you can manually test different designs with different customer segments. Contact support for guidance.
Next Steps
- How Customers Subscribe - Understand customer experience
- Troubleshooting Guide - Fix common issues
Was this article helpful?
Let us know — your feedback helps us improve our documentation.