For the complete documentation index, see llms.txt. This page is also available as Markdown.

Integrate into Shopify Themes built with Liquid

Having completed Install our app

  1. Navigate to a theme where you wish to test Purple Dot

  2. Click "Edit theme", then "App embeds" on the sidebar of the theme code editor

  3. Search for "Purple Dot"

  4. Provide the "Purple Dot API Key" and "Purple Dot Shared Secret" values that you can find at the bottom of the Integrations page in our Merchant Portal

  5. Enable the embed and save the theme

The shopper portal allows your customers to see their pre-order history and cancel pre-orders before they are fulfilled.

We recommend hosting the shopper portal iframe on a new page - e.g. /pages/manage-pre-orders - that is linked from your support pages, similar to how a returns portal would be.

The title of the page should be Manage Pre-orders.

The following snippet should be placed on a Shopify page by editing the page's HTML:

<purple-dot-self-service />

If your preferred checkout method is to use a separate cart, there is some additional configuration required to place the separate cart icon and enable the variant selectors on liquid theme:

  1. Configure the cart placement

Unexpected DOM structure?

Sometimes, you may find empty elements with padding/margin etc., if the theme you're working on is different to the one assumed in our previous example. If this is the case, you can set up a mutation observer on an ancestor of the cart icon like so:

  1. Configure variant selectors on a PDP

Sometimes, a PDP will have variant selectors that show the variant as sold out, even though the variant is available for preorder. In this case, we can target these elements, and remove a 'disabled' class (or similar) from them in order to 'enable' them.

There are two ways of selecting elements (depending on whether or not they are inside an ATC form), but you must always provide a class to remove.

Last updated