> For the complete documentation index, see [llms.txt](https://docs.getpurpledot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getpurpledot.com/integrations/tax-duties-and-shipping/zapiet-pickup.md). Agents can also search and read this documentation through its [MCP server](https://docs.getpurpledot.com/~gitbook/mcp).

# Connect Zapiet

Configure Zapiet locations and your cart widget for pre-order pickup.

Background: [How tax, duties, and shipping integrations work](https://docs.getpurpledot.com/integrations/tax-duties-and-shipping/how-tax-duties-and-shipping-integrations-work.md).

## Before you start

* You use the [Purple Dot checkout](https://docs.getpurpledot.com/understanding-purple-dot/glossary.md#purple-dot-checkout).
* Zapiet's cart widget is installed in your Shopify theme.
* If you don't use Zapiet's pickup date picker (the calendar that lets shoppers choose a date and time to collect their order), no further setup is required.

## Steps

If you use the pickup date picker, configure a copy of each location for pre-orders:

1. In Zapiet, for each location where the pickup date picker is turned on:
   1. Duplicate the location.
   2. Give the copy a different name and turn off the pickup date picker.

      <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-4cdc0c7f7fb7760889fb12285bfdba7ad1270928%2Fhow-to-use-zapiet-with-purple-dot-2.png?alt=media" alt="Pickup date picker disabled on a Zapiet location"><figcaption></figcaption></figure>
   3. Set the copy's first custom attribute to `supports-purple-dot-pre-orders:true`.

      <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-7c38f48781f3a5c79273cda94be965b092fe6eee%2Fhow-to-use-zapiet-with-purple-dot-3.png?alt=media" alt="Custom attribute enabling a location for pre-orders"><figcaption></figcaption></figure>
   4. Set the original location's first custom attribute to `supports-purple-dot-pre-orders:false`.

      <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-49a57cce275120666983daf39faab0ca3413bd70%2Fhow-to-use-zapiet-with-purple-dot-4.png?alt=media" alt="Custom attribute excluding a location from pre-orders"><figcaption></figcaption></figure>
2. In Zapiet, go to **Settings** > **Developers** and turn on **Enable restoring widget selection from the ZapietID**. The code in the next step needs this to work reliably.

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-be3b093dcbf0fabf264aab5305ac705df3b5d212%2Fhow-to-use-zapiet-with-purple-dot-5.png?alt=media" alt="Zapiet setting to restore widget selection from the ZapietID"><figcaption></figcaption></figure>
3. In your Shopify theme, add this snippet to your cart drawer, so the cart widget shows the locations without the pickup date picker when the cart contains a pre-order. The file to edit is likely called something like `cart-drawer.liquid`. [Contact Purple Dot support](https://docs.getpurpledot.com/troubleshooting/get-more-help.md) if you'd like a hand with this.

   ```liquid
   {% comment %}
     Purple Dot Zapiet Location Filter
     Purple Dot requires local pick to be used WITHOUT a date picker
   {% endcomment %}

   {%- assign any_items_are_purple_dot_pre_orders = false -%}

   {%- if cart.item_count > 0 -%}
     {%- for item in cart.items -%}
       {%- if item.properties.__pdCheckoutRequired == 'yes' -%}
         {%- assign any_items_are_purple_dot_pre_orders = true -%}
       {%- endif -%}
     {%- endfor -%}
   {%- endif -%}

   <input type="hidden" id="pickupFilterByField" value="custom_attribute_1" />
   {%- if any_items_are_purple_dot_pre_orders -%}
     {% comment %} Show Purple Dot pre-order locations (without date pickers) {% endcomment %}
      <input type="hidden" id="pickupFilterByValue" value="supports-purple-dot-pre-orders:true" />
     {%- else -%}
       {% comment %} Show normal locations (with date pickers) {% endcomment %}
     <input type="hidden" id="pickupFilterByValue" value="supports-purple-dot-pre-orders:false" />
   {%- endif -%}
   ```

## Verify

1. On your storefront, add a pre-order to the cart and opt into local pickup in the side cart. Only the locations without the pickup date picker are shown.
2. Continue to checkout. The Purple Dot checkout opens, and at the shipping step it shows that all items in the cart are opted into local pickup rather than delivery.
3. Complete the checkout. The confirmation email Purple Dot sends says that the pre-order requires local pickup and that you'll get in touch once it's ready. That happens through the automated email Zapiet sends when you mark the order as ready for pickup in Zapiet.

## Troubleshooting

* [My integration is not syncing](https://docs.getpurpledot.com/troubleshooting/orders-and-inventory/integration-is-not-syncing.md)
* [Get more help](https://docs.getpurpledot.com/troubleshooting/get-more-help.md)

## Related

* **Concept:** [How tax, duties, and shipping integrations work](https://docs.getpurpledot.com/integrations/tax-duties-and-shipping/how-tax-duties-and-shipping-integrations-work.md)
* **Look up:** [Settings and data](https://docs.getpurpledot.com/integrations/tax-duties-and-shipping/zapiet-pickup/settings-and-data.md)
* **Fix it:** [The taxes are wrong at checkout](https://docs.getpurpledot.com/troubleshooting/storefront-and-checkout/taxes-are-wrong-at-checkout.md)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.getpurpledot.com/integrations/tax-duties-and-shipping/zapiet-pickup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
