Add To Cart Form - Liquid Form Reference
On this page
Usage
liquid
{% form "add-to-cart" %}
<!-- Form fields here -->
{% 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 |
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