less than a minute read • Updated 8 days ago
Manage product inventory with Webflow CMS
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.
Links
Demo
Read-only
Create Inventory Field
Set Default Inventory Count
Conditionally Show/Hide Purchase Option
Conditionally Show/Hide Out Of Stock Message
Configure Webflow Webhook
If you're currently using v1 of our Webflow webhook integration, please disable it and follow the steps below to connect to v2.
Troubleshooting
Beyond general webhook errors, two failures are specific to the Webflow integration. Both appear in your store's error log.
Product code "..." not found
If a product in a transaction is missing a code, or its code doesn't match any item in your products collection, the webhook fails with an error like:
Webhooks processing problems: Webflow2 (webflow2): Product code "my-missing-code" not found [400]
Confirm the link or form that added the product carries the correct code. To re-feed the webhook, the product in the CMS must carry the code exactly as it was sent. If the codes match, confirm the Webflow connection settings on the Integrations page in the Foxy admin point at the correct collection field for the code (for example the slug, if that is what you use as the product code). If the field is wrong, disable the connection and reconnect, selecting the right fields.
Publish conflicts
If you have edited your product collection's schema without publishing, Webflow rejects API publish requests until the changes are published. You will see errors like:
Webhooks processing problems: Webflow2 (webflow2): Conflict: Site is published to multiple domains at different times. [409]
Webflow (webflow): CollectionSchemaChangedError: The collection structure changed since the last publish [400]
Publish any collection schema changes in Webflow, making sure staging and live collections match, then re-feed the webhook to your Webflow site.