> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orderprotection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tapcart

> Offer guaranteed delivery to your most loyal customers.

<Note>
  Easily add Order Protection to your app and offer guaranteed delivery to your
  most loyal customers. Deploy our lightweight widget through Tapcart's Custom
  Blocks, fast.
</Note>

## Installation

<Tip>Before you begin, make sure you have your shopify store url handy.</Tip>

<Steps>
  <Step title="Create Custom Block">
    Under **App Studio**, to to Cart.

    <Frame caption="Cart view inside App Studio">
      <img src="https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/tapcart/1.png?fit=max&auto=format&n=GDuchlp6KbhScehe&q=85&s=b982343f1898e3b8f4983fa6986b7cd3" alt="Cart" width="1439" height="901" data-path="public/assets/img/tapcart/1.png" />
    </Frame>

    Under **Custom Blocks**, select **Launch Blocks Editor** and call it Order Protection.

    <Frame caption="Creating custom block">
      <img src="https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/tapcart/2.png?fit=max&auto=format&n=GDuchlp6KbhScehe&q=85&s=12e79fe86082982917747aa301d0af1a" alt="Create custom block" width="1440" height="900" data-path="public/assets/img/tapcart/2.png" />
    </Frame>
  </Step>

  <Step title="Edit block">
    Select, `edit` and then launch the editor that will bring up your HTML, CSS, and JS tabs. Populate the following within each tab

    <Frame caption="Blocks editor">
      <img src="https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/tapcart/3.png?fit=max&auto=format&n=GDuchlp6KbhScehe&q=85&s=67bd87220050b02f4aa3f7f1bc4e3d22" alt="Blocks editor" width="1439" height="901" data-path="public/assets/img/tapcart/3.png" />
    </Frame>

    <CodeGroup>
      ```html html theme={null}
      <script src="https://cdn.orderprotection.com/widget/tapcart/latest/orderprotection.js"></script>

      <div id="op-wrapper">
        <div id="order-protection"></div>
      </div>
      ```

      ```css css theme={null}
      @import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap";

      @import"https://cdn.orderprotection.com/widget/tapcart/latest/style.css";

      #op-wrapper {
        margin: 0 1rem;
      }
      ```

      ```js javascript theme={null}
      // Replace myStoreUrl with your store URL
      // This needs to be your `myshopify.com` URL
      const myStoreUrl = "orderprotection.myshopify.com";
      let attachInterval = null

      const timer = setInterval(() => {
        if (window.Tapcart.isInitialized) {
          const widget = OrderP.createWidget({
            store_url: myStoreUrl,
          })

          attachInterval = setInterval(() => {
            widget.ui.attach()
          }, 1000)

          clearInterval(timer)
        }
      }, 100)
      ```
    </CodeGroup>

    <Warning>
      You must replace `orderprotection.myshopify.com` with your actual store URL.
    </Warning>
  </Step>

  <Step title="Settings">
    In the right navigation under **Settings**, scroll all the way to the bottom past the **Variable Preview Values** until you see the **Set Custom Block SDK version** section. Click the dropdown and select `v1.5`.

    <Note>
      The Order Protection widget is compatible with versions `v1.5` and above.
    </Note>

    <Frame caption="Setting the SDK version for the block">
      <img src="https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/tapcart/4.png?fit=max&auto=format&n=GDuchlp6KbhScehe&q=85&s=e468eb96af106c3042f8851e49d3c84b" alt="Settings" width="1442" height="900" data-path="public/assets/img/tapcart/4.png" />
    </Frame>
  </Step>

  <Step title="Save">
    Click **Save** button and you will get a prompt that says `"OrderProtection
          custom block saved successfully!"` Then click **Close** in the upper left hand
    corner to close the block settings.
  </Step>

  <Step title="TapCart Settings">
    In TapCart **Settings** (tab to the right of the **Integrations**), do the
    following:

    <Steps>
      <Step title="Quick Add Products">
        In Store Settings toggle off `Quick Add Products`.
      </Step>

      <Step title="Quick Add Products">
        In Cart & Checkout toggle off `Navigate customers to checkout`.
      </Step>

      <Step title="Save & Update">
        At the bottom of the screen, hit the `Save & Update` button.
      </Step>
    </Steps>

    <img src="https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/tapcart/5.png?fit=max&auto=format&n=GDuchlp6KbhScehe&q=85&s=887626e48bd545ebff87402c5f84bd1d" alt="Settings" width="1441" height="902" data-path="public/assets/img/tapcart/5.png" />
  </Step>

  <Step title="Shopify Settings">
    <Note>
      These next actions are done in your Shopify store.
    </Note>

    In the `left` navigation of Shopify go to `Products -> Search and Filter -> Product Vendor` and click Order Protection.

    <img src="https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/tapcart/6.png?fit=max&auto=format&n=GDuchlp6KbhScehe&q=85&s=c590c08ca12f57ad68b5052360abc3c7" alt="Edit Code" width="1440" height="899" data-path="public/assets/img/tapcart/6.png" />

    Once filtered,, click on `Order Protection` and click on the three dots in the right navigation `Publishing` section to bring up a `Manage sales channel` flyout. Make sure `Online Store, Tapcart - Mobile App`, and `Checkout Blocks` are checked and then hit `Done`

    <img src="https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/tapcart/7.png?fit=max&auto=format&n=GDuchlp6KbhScehe&q=85&s=6629c2e1bf814293a2b3e6a41a963729" alt="Paste code" width="1440" height="898" data-path="public/assets/img/tapcart/7.png" />

    Click `Save`.
  </Step>

  <Step title="Finally" icon="flag-checkered">
    <Note>
      This last action is done in the TapCart dashboard. This is the final step before TapCart goes live on your application.
    </Note>

    Finally, under **Apps**, search and click **Tapcart - Mobile App**. In the left navigation and under the **App Studio > Home** toggle to **Custom Block** and drag the Order Protection block into the page builder to add it to your store, `confirm` you want to add the block and save. Then hit `preview your app` in the top right hand corner of the page. Add an item to the cart.
  </Step>
</Steps>

### All Done

<Check>
  OrderProtection will now be added to all cart instances within your TapCart
  app. Customers will be able to file/edit claims per your normal store settings
  once an order is placed.
</Check>

<img src="https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/tapcart/8.png?fit=max&auto=format&n=GDuchlp6KbhScehe&q=85&s=ffab3522dd7ef1cf4b6beb3fe4bb39d3" alt="All Done" width="1437" height="901" data-path="public/assets/img/tapcart/8.png" />
