Sending your Awtomic portal's Cancel and Skip buttons to Garde
Paste one snippet into your Shopify theme so members who click Cancel or Skip in the Awtomic portal reach your Garde flow.
This is for wineries on Awtomic. You copy one snippet from Garde and paste it into your Shopify theme. After that, when a signed-in member clicks Cancel or Skip in your Awtomic member portal, they go to your Garde cancel or skip flow instead of Awtomic's own pop-up. You don't need a developer.
Skip covers both of Awtomic's skip controls: the Skip next button and the small Skip link beside the next billing date ("Skip until …" when you point at it). Check the first line of the snippet in your theme: if it says v2 or has no version, only Skip next goes to Garde, and the Skip link beside the date skips straight away in Awtomic. Copy the snippet again (its first line says v3) and paste it in place of the old one so both open your Garde skip flow. Don't keep both: only the first Garde snippet on the page runs.
Before you start
- Your store must be connected in Garde, and your Garde address must be set up
(if the Install tab says it isn't, ask Garde support) (see Connecting Garde to your Awtomic store).
- Keep Awtomic's own Cancel and Skip buttons switched on in Awtomic's
customer portal settings. The snippet takes over those buttons; if they are hidden, there is nothing for it to take over.
Paste the snippet
- In Garde, open Cancel flow → Install. Find the Awtomic portal snippet
box and click Copy snippet. It is already filled in with your store and your Garde address.
- In Shopify admin, go to Online Store → Themes.
- Next to your live theme, click ⋯ (or Actions) → Edit code.
- Under Layout, open theme.liquid.
- Find the line
</body>near the bottom and paste the snippet just above it. - Click Save.
- Test it: sign in to your store as a test member, open the member portal, open
a subscription and click Cancel. You should land on your Garde cancel page. Use your browser's back button to return. Open the portal again in a new tab and click the Skip link beside the next billing date: you should land on your Garde skip page.
To replace a snippet you pasted earlier, delete it first (everything from the <!-- Garde: line to the closing </script> line), then paste the new one in its place. Keep only one copy: when two Garde snippets are on the page, only the first one runs, so an old snippet left above the new one keeps the old behavior.
The snippet only does something on the Awtomic member portal page. Other pages of your store are not changed.
Optional portal panel
If Garde has enabled the portal panel for your Shopify storefront, the Install tab offers Copy portal panel snippet. Use it in place of the existing snippet and test on your storefront before publishing the theme. Members see Garde in a side panel on desktop or a full-screen panel on mobile. They can close it to return to the portal, which normally reloads after they submit an action. If the first panel cannot open, the link opens the regular Garde page. After a submission, the member can reopen the panel to check the request, and Garde keeps the protection against repeat changes. If confirmation takes too long, the panel offers a way to return to the portal and check the subscription. To switch back, replace the panel snippet with Copy snippet.
What members see
Members see the same portal and the same buttons as before. Clicking Cancel, Skip next or the Skip link beside the next billing date greys it for a moment and then opens your Garde flow for that subscription. Garde checks with Awtomic that the member is signed in and owns the subscription before showing anything.
When Awtomic's own buttons are used instead
If Garde can't take over a click, the button does exactly what it did before, in Awtomic, so members can always cancel or skip. This happens when:
- the member's sign-in can't be confirmed (for example it has expired, or it
belongs to a different store);
- the subscription details haven't finished loading;
- the subscription is prepaid (prepaid subscriptions keep Awtomic's own
cancel steps);
- the portal is open in Awtomic's demo mode;
- you offer members a choice of how long to skip (Awtomic's skip options): both
Skip controls then keep Awtomic's choices, and only Cancel goes to Garde. To send Skip to Garde, turn them off; see Turning off Awtomic's skip options;
- with the standard snippet, the member was sent to Garde for that subscription
in the last 10 minutes and came back to the portal (for example Garde couldn't open, or they changed their mind). Their next click uses Awtomic's own button. Both Skip controls count as one: after a skip hand-off, either one uses Awtomic's.
The snippet can't tell in advance whether Garde's website is reachable. If a member has a request awaiting confirmation, they can check the subscription or contact the winery before trying again.
Things to know
- Theme changes: the snippet lives in your theme. If you switch themes or
install a theme update that replaces theme.liquid, paste it again.
- Awtomic's own offers: when the snippet is on, members don't see Awtomic's
built-in cancel offers for non-prepaid subscriptions; they see your Garde flow instead.
- Snippets pasted before November 13, 2026 keep working. Pasting the current
snippet again is recommended: it sends the member's sign-in pass to Garde after a #, which keeps it out of server logs. Garde removes it from the address bar either way.
- Checking it works: the Status page marks member links as done after the
first member opens Garde from your portal.
- The sign-in pass: the member's Awtomic sign-in pass is sent to Garde in the
link, the same as the links in Generating cancel and skip links. It is only ever sent to your Garde address and never written to logs by the snippet. The portal panel sends it directly to the Garde frame without putting it in the address.
Removing it
Open theme.liquid again, delete everything from the <!-- Garde: line to the closing </script> line, and click Save. Awtomic's own Cancel and Skip buttons then work as before.