Docs
Free ON WEBFLOW.IO DOMAINS

Klaviyo Back In Stock Form

Component
Subscribes customers to Klaviyo back-in-stock alerts for the current product variant.

Shopify Storefront data and cart logic is bound to your Webflow elements through Shopyflow attributes. Connecting your Webflow site to Shopify is done by adding custom attributes to your Webflow elements.

Yet, you are not required to type or edit attributes manually. Shopyflow provides you with the pre-configured components needed to create your store, as copyable Webflow elements right in Webflow designer.

All the copyable Shopyflow Components are native editable Webflow elements. There is no layout or styling limitation on any element.

In the below image hover your mouse on the hotspots to see all the required Shopyflow attributes to build a product page like this in Webflow

Webflow designer
Custom Attributes
sf-add-to-cart="1"
Custom Attributes
sf-change-quantity="1"
Custom Attributes
sf-change-option="{Option Name}"
Custom Attributes
sf-cart-count="1"
Custom Attributes
sf-change-option="{Option Name}"
Custom Attributes
sf-product="{Product ID}"
Custom Attributes
sf-show-image="1"
Attribute Name
sf-klaviyo-back-in-stock-form
Attribute Value
True or 1
True or 1
Nesting Rule
Can be placed anywhere in the site
Buy Module
>
Klaviyo Back In Stock Form
Method
sf-klaviyo-back-in-stock-form

The Klaviyo Back in Stock Form lets shoppers request an email alert when a sold-out variant is restocked. It is a Form Block with the sf-klaviyo-back-in-stock-form attribute, and it must be placed inside the Buy Module (the product container). On submit, Storesynk reads the currently selected variant from the Buy Module's Add to Cart Button and creates a Klaviyo back-in-stock subscription for that exact variant over the email channel.

Because the form is tied to the active variant, it always subscribes the shopper to whichever option combination is selected at the time of submission. Pair it with the out-of-stock state so it only appears when the selected variant is unavailable.

If you also add a Klaviyo List ID (sf-klaviyo-list-id) to the submit button, the shopper is additionally subscribed to that Klaviyo marketing list — the same behavior as the standard Klaviyo Form. The list subscription is optional; the back-in-stock subscription happens regardless. You can also collect a phone number (sf-phone) and send extra profile properties with sf-klaviyo-prop — the same behavior as the standard Klaviyo Form.

Requirements

  • The Klaviyo Integration must be enabled for your store.
  • The Klaviyo onsite script must load on the page. Storesynk reads your public Klaviyo company ID from the onsite script URL (static.klaviyo.com/onsite/js/<company_id>/klaviyo.js); without it, the form cannot submit a subscription.
  • Your products must be synced to your Klaviyo catalog (via the Klaviyo app for Shopify) so Klaviyo can match the variant.
  • A live Back in Stock flow in Klaviyo to send the restock alert — see Klaviyo Integration.
  • The form must be nested inside a Buy Module (Product Container).
Class name
sf-klaviyo-back-in-stock-form
Target elements
Can be placed anywhere in the site
Buy Module

Webflow app usage

  1. In the Storesynk Webflow App, go to Store Builder > Add New > Klaviyo Back in Stock Form.
  2. Click Copy element.
  3. Paste the component inside your Buy Module, where you want the back-in-stock form to appear.
  4. Confirm the Klaviyo Email Field is present — the email field is required.
  5. Optionally add First Name, Last Name, Phone, a Custom Property, and a List ID.
  6. Remove the sf-out-of-stock combo class from the top two elements of the component. The component will become automatically visible when the selected variant is sold out.
  7. In Klaviyo, set up a live Back in Stock flow so subscribers receive the alert (see Klaviyo Integration).
  8. Publish your site.

Webflow app settings

Inner components

Module contents

Available methods

Klaviyo Email Field

Email collecting field
Attribute Name
sf-email
Attribute Value
True or 1
Method
sf-email
Read more →

Klaviyo First Name Field

First name collecting field
Attribute Name
sf-firstname
Attribute Value
True or 1
Method
sf-firstname
Read more →

Klaviyo Last Name Field

Last name collecting field
Attribute Name
sf-lastname
Attribute Value
True or 1
Method
sf-lastname
Read more →

Component

contents

Klaviyo Email Field

Form Field
Email collecting field
Attribute Name
sf-email
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
Klaviyo Form
>
Klaviyo Email Field
Read more →

Webflow app usage

Webflow app settings

Klaviyo First Name Field

Form Field
First name collecting field
Attribute Name
sf-firstname
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
Klaviyo Form
>
Klaviyo First Name Field
Read more →

Webflow app usage

Webflow app settings

Klaviyo Last Name Field

Form Field
Last name collecting field
Attribute Name
sf-lastname
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
Klaviyo Form
>
Klaviyo Last Name Field
Read more →

Webflow app usage

Webflow app settings

State management

No items found.

Related Utilities

No items found.
Can't find a solution? Join our Discord server to get an instant reply from our experts and the community.