# Pre-order using metafields

Palo Alto supports metafields for creating pre-order products. When you define a preorder metafield, you can easily toggle on or off the preorder feature which converts the 'Add to Cart' button to a 'Pre-Order' button.

On the main product page, the Add to Cart button is replaced with a Pre-order button:

<figure><img src="/files/Tx7k7vAKSuKlfZ3ezcAV" alt=""><figcaption></figcaption></figure>

When viewing a collection page or any product grid-style section, a 'Pre-Order' badge is added to the product:

<figure><img src="/files/qnfTX70GjSgk1xRsfQ4z" alt=""><figcaption></figcaption></figure>

## How to setup

Setting up a preorder metafield is very simple and can be done right in your Shopify Admin.

### Metafield definition

Create a product metafield with the namespace and key set to `theme.preorder`. Set the content type to **True or false.**

<figure><img src="/files/CeNwfx5uoPUd1zUuLHr5" alt=""><figcaption></figcaption></figure>

### Product setup

In the Metafields section of any product that you'd like to use the feature, change the preorder value to True:

<figure><img src="/files/SSv001HPIFQYUKtkwY7R" alt=""><figcaption><p>Bottom of product setup page in the Shopify Admin -> Products</p></figcaption></figure>

### Preorder template

To remove the **Buy it now button**, you can create a preorder product template and uncheck '*Show dynamic checkout buttons'* under the **Form** block.

{% content-ref url="/pages/-Mk26MyaGXZmNavo9mTb" %}
[Creating new Product page templates](/palo-alto-4.1/products/creating-product-templates.md)
{% endcontent-ref %}


---

# Agent Instructions: 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:

```
GET https://palo-alto.presidiocreative.com/palo-alto-4.1/products/pre-order-using-metafields.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
