{"title":"Add To Cart Form - Liquid Form Reference","slug":"add-to-cart-form-reference","url":"https://support.storeconnect.com/articles/add-to-cart-form-reference","url_markdown":"https://support.storeconnect.com/articles/add-to-cart-form-reference.md","subtitle":null,"summary":"The `add-to-cart` Liquid form adds a product to the cart with quantity, price, and optional booking fields. Supports dynamic custom form questions.","type":"Developer_Documentation","video_url":"","keywords":"liquid, forms, add-to-cart, cart, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Usage\n\n\n```liquid\n\n{% form \"add-to-cart\" %}\n  \u003c!-- Form fields here --\u003e\n{% endform %}\n```\n\n\n| Property | Value |\n|----------|-------|\n| **Form Name** | `add-to-cart` |\n| **Category** | Cart |\n| **Dynamic Fields** | Supports custom form questions |\n\n## Fields\n\n| Field Name | Description |\n|------------|-------------|\n| `quantity` | Quantity |\n| `price` | Price |\n| `product_bookable_location_id` | Product Bookable Location Id |\n| `booking_start` | Booking Start |\n| `booking_end` | Booking End |\n\n## Form Object\n\nInside the form block, you can access the `form` object which provides:\n\n- `form.errors` — Any validation errors after submission\n- `form.fields` — Array of form field objects, each with `name`, `value`, `errors`, and `required`"}