← Back to Snippets
$5Beginner

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.

Category: Conversion Compatibility: All OS 2.0 Themes Updated: Feb 2026
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

  1. Purchase the snippet from Gumroad — you'll receive a .zip with the .liquid file and README.md
  2. In your Shopify admin, go to Online Store → Themes → Edit Code
  3. Under Snippets, click "Add a new snippet"
  4. Name it stock-countdown
  5. Paste the code from the downloaded file and save
  6. Open your product template and add the render tag near the Add to Cart button
  7. 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.
Start for free then pay $1/month for 3 months — Claim offer