3 min read • Updated 18 days ago
Manage product inventory with Webflow CMS
New Version Coming Soon
Managing product inventory with Webflow CMS requires an API connection. We're in the process of finishing up our new integration with Webflow API v2. If you run into any issues connecting via API v1, please contact us.
The following tutorial assumes you have already setup a products collection in Webflow's CMS and have added your products. Please refer to this article for more information.
Important
This integration assumes that all of your products are set up within a single Webflow CMS Collection, and that all of your products will be tracked for inventory. If the integration is unable to find a specific product code from an order in your products collection, it will trigger an error response for the webhook.
Your product link or form must include the code
parameter and optionally the quantity_max
parameter to ensure a single customer can't order more than the inventory count of a product.
Create Inventory Field
1In your Products CMS Collection add a number field for Inventory (this can be called anything).
2Ensure that "Allow negative numbers" is enabled.
Set Default Inventory Count
1Click on desired product from your products list.
2Give your product a starting inventory count.
3Click the "Save" button at top to save your changes.
4Repeat steps for each product.
Conditionally Show/Hide Purchase Option
1Select your purchase button or form element.
2Click on the "Element Settings" icon at top.
3Under the "Condition Visibility" section, click the plus sign to add a new condition.
4Set the element to be visible when Inventory Is Greater Than 0.
5Click the "Save" button to add condition.
Conditionally Show/Hide Out Of Stock Message
1In Webflow's Designer, click on the "Add Elements" icon to the left.
2Choose your desired element. (ex: Heading or Text Block)
3Modify element as needed.
4Click on the "Element Settings" icon at top.
5Under the "Condition Visibility" section, click the plus sign to add a new condition.
6Set the element to be visible when Inventory Is Less Than 1.
7Click the "Save" button to add condition.