4 min read • Updated 8 days ago
Create a purchase form with Webflow's Form Builder
In this article we show you how to use Webflow's form builder to setup a purchase form to sell any type of product or service. We'll cover how to handle different product types later in the article.
Note
This article assumes you have a good understanding of how Webflow forms work. If this is your first time using Webflow's form builder, please visit this page.
Add Foxy Code Snippet
To display the sidecart when a customer adds a product to cart and to store customer sessions, you must first load the needed Foxy loader file into your website.
Setup Purchase Form
Please note that when designing your purchase form, customer and billing information (ex: name, email, credit card #) will be collected on the checkout page, so there is no need to add those fields to your form.
Add Foxy Specific Fields
To create a legitimate product, Foxy requires (at minimum) the product name and price. The following steps will show you how to add these hidden fields using a select field since setting a default value for input fields is not currently allowed in Webflow.
Set Form Action
Different Product Types
You can use Webflow's form builder to sell any type of product. Below are extra steps required for the different product types.
Subscriptions (recurring payments)
Donations
Product Variants
For certain products you may need to allow the customer to choose from different variants (ex: Size). We recommend using select and/or radio fields.
Display A Quantity Field
Quantity can be modified once a product is in the cart, but if you want to allow customers to choose a quantity before adding a product to cart, simply add a form field with the Name set as "quantity" (lowercase q). This can be an input field, select field, etc.