> For the complete documentation index, see [llms.txt](https://docs.ultramarinastudios.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ultramarinastudios.com/guides/how-to-create-a-preorder-product.md).

# How to create a preorder product

<figure><img src="/files/Pi27rZErW3yAxUCL4RVv" alt="This product has a &#x22;Preorder&#x22; button and has been assigned a preorder-specific product template to display a custom product badge and an estimated delivery date"><figcaption><p>Here, we created a preorder-specific product template to display a custom product badge and an estimated delivery date.</p></figcaption></figure>

{% hint style="success" %}
Available in version 1.4.0 and later
{% endhint %}

To replace the "Add to cart" button with "Preorder" for specific products:

1. Create a new metafield with the name Preorder.
2. Click the custom.preorder button to unlock the 'Namespace and key' field. Change the value to the  the following namespace and key: `theme.preorder`
3. Change the type to be "True or false".
4. For each preorder product, update the metafield value to "True"
5. *Optional*: Assign a "Preorder" product badge ([see guide](https://docs.ultramarinastudios.com/guides/how-to-add-product-badges)) to highlight it in collections
6. *Optional*: Create a new product template to display the product badge and/or add preorder-specific information such as:
   1. [Icon with text](/templates/product/product-blocks.md#icon-with-text) connected to a product metafield that specifies the estimated delivery date
   2. [Collapsible](/templates/product/product-blocks.md#collapsible-item) that specifies any terms or information related to availability/payment/delivery

Please note:

* The preorder button will only display if the product is in stock or set to "Continue selling when out of stock".&#x20;
* Dynamic checkout buttons will be hidden.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ultramarinastudios.com/guides/how-to-create-a-preorder-product.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
