inventory urgency message
shows low-stock urgency on product pages when inventory drops below a configurable threshold.
// what's inside
- inventory quantity check against configurable threshold (default: 5)
- urgency message: "Only X left in stock"
- hides when inventory is above threshold
- inline CSS — no external stylesheet needed
- OS 2.0 compatible product section snippet
// use this when
- creating urgency on low-stock products without an app
- reducing cart abandonment on popular items
- signaling scarcity during a sale