Add To Cart Form - Liquid Form Reference
On this page
Usage
```liquid
{% form “add-to-cart” %} {% endform %} ```
| Property | Value |
|---|---|
| Form Name | add-to-cart |
| Category | Cart |
| Dynamic Fields | Supports custom form questions |
Fields
| Field Name | Description |
|---|---|
quantity |
Quantity |
price |
Price |
product_bookable_location_id |
Product Bookable Location Id |
booking_start |
Booking Start |
booking_end |
Booking End |
For a bookable product, send all three booking fields. booking_start and booking_end must be readable date-times, such as 2026-11-20T10:00:00+11:00, and product_bookable_location_id must be one of the product’s own Product Bookable Locations. Without them, the product is not added to the cart and the shopper returns to the product page with a message asking them to choose a date and time.
Form Object
Inside the form block, you can access the form object which provides:
form.errors— Any validation errors after submissionform.fields— Array of form field objects, each withname,value,errors, andrequired
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.