← Back to Snippets
Stock Countdown
Displays "Only X left in stock!" with urgency styling when inventory drops below your threshold. Two urgency levels (red + amber), visual progress bar, and dynamic variant sync.
snippets/plynthr-stock-countdown.liquid
Purchase — $5
{% comment %}
Plynthr — Stock Countdown (Premium)
This is a preview of the snippet. Purchase to receive:
✓ Full source code (.liquid file)
✓ Installation guide (README)
✓ Support via plynthr.com/contact
FEATURES:
- Red alert (≤5 stock): "Only X left!" with pulse animation
- Amber warning (≤15 stock): "Selling fast" with static badge
- Visual stock progress bar
- Out of stock state
- Updates dynamically on variant change
- Auto-hides when stock is above threshold
- Configurable thresholds
- CSS custom properties for theming
{% endcomment %}
<!-- Full code available after purchase -->
<!-- Includes: 180+ lines of Liquid, CSS, and JavaScript -->
<!-- Fully documented with installation guide -->
Installation
- Purchase the snippet from Gumroad — you'll receive a .zip with the
.liquidfile andREADME.md - In your Shopify admin, go to Online Store → Themes → Edit Code
- Under Snippets, click "Add a new snippet"
- Name it
stock-countdown - Paste the code from the downloaded file and save
- Open your product template and add the render tag near the Add to Cart button
- Ensure your products have inventory tracking enabled
Customization
- Configurable low and medium stock thresholds
- 10+ CSS custom properties for both urgency levels
- Pulse animation can be enabled or disabled
- Progress bar width scales with stock level
- Out of stock state with separate styling
Want this installed for you?
I'll add this to your Shopify store, test it, and make sure it's working perfectly. Done within 24 hours.
Purchase — $5 Install for Me — $29
✓ Installed & tested
✓ Within 24 hours
✓ Any OS 2.0 theme
FAQ
What do I get when I purchase?
A .zip file containing the full
.liquid snippet (180+ lines) and a detailed README.md with installation steps and customisation options.Does it work with all variant types?
Yes. The snippet maps inventory for every variant and updates the display when the customer selects a different size, color, etc.
Will it show for products with 'Continue selling when out of stock' enabled?
No. The snippet intelligently hides itself when the inventory policy allows overselling, since urgency wouldn't make sense.