Back In Stock Notifications for Klaviyo
Location: web/app/plugins/back-in-stock-notifications-for-klaviyo/
Author: Rhino Group (custom fork/build)
Overviewโ
This plugin integrates WooCommerce product availability with Klaviyo's email and SMS marketing platform to deliver back-in-stock notifications. When a product is out of stock, customers can register their interest. When stock is restored, Klaviyo automatically sends notification emails/SMS to interested customers.
Featuresโ
Back-in-Stock Sign-Up Formโ
- Embeds a sign-up form on out-of-stock product pages
- Customer provides email address (and optionally phone number for SMS)
- Sign-up data is sent to Klaviyo and stored against the customer profile
- Customer is tagged with the specific product SKU they are waiting for
Klaviyo Product Feedโ
The plugin registers a custom Klaviyo product feed that:
- Provides real-time product catalog data to Klaviyo
- Enables product-level personalization in Klaviyo flows
- Includes product images, prices, URLs, and availability status
- Updates automatically when product data changes
Automated Flow Triggersโ
When a product comes back in stock (WooCommerce stock management):
- WordPress fires
woocommerce_product_set_stock_status(or similar hook) - Plugin identifies all Klaviyo profiles waiting for that product
- A Klaviyo event is triggered:
Back In Stock - {SKU} - Klaviyo flow handles email/SMS delivery to interested customers
Configurationโ
WP Admin โ Klaviyo โ Settings (or wherever your Klaviyo plugin settings are located)
| Setting | Description |
|---|---|
| Klaviyo API Key | Server-side API key for event/profile updates |
| Enable Sign-Up Forms | Whether to show the form on OOS products |
| Form Placement | Where on the product page to show the form |
Klaviyo Event Structureโ
Events sent to Klaviyo when back-in-stock triggers fire:
{
"event": "Back In Stock",
"customer_properties": {
"$email": "[email protected]",
"$phone_number": "+16025551234"
},
"properties": {
"ProductName": "1 oz Silver American Eagle",
"ProductSKU": "SM-1OZ-SAE",
"ProductURL": "https://www.scottsdalemint.com/product/...",
"ProductImageURL": "https://cdn.scottsdalemint.com/...",
"ProductPrice": 29.95,
"ProductCategories": ["Silver", "Coins"]
}
}
Integration with class-klaviyo.php (Theme)โ
The suma-elementor theme's \Suma\Klaviyo class handles broader Klaviyo integrations (order tracking, customer profile sync). This plugin is specifically focused on the back-in-stock use case and the product feed registration.
See Klaviyo Integration for full Klaviyo documentation.