Skip to navigation

Tagging the Subscription Manager

Add a link to the Ordergroove Subscription Manager on your Shopify customers/account page

View as Markdown

You can update your customers/account page to include a link to Ordergroove’s Subscription Manager. If your customers/account page supports blocks where you want the link to be, check out our streamlined process for Online Store 2.0 at Convert your customers/account page to support Online Store 2.0.

Platform

This article is only applicable for stores on Shopify.


Before you start

These steps apply to stores using classic (legacy) customer accounts, where the account page is part of your theme.

If your store uses Shopify’s new customer accounts, the account pages aren’t part of your theme, so skip the steps below. Instead, follow Shopify New Customer Accounts in the Knowledge Center to add a Subscription Manager link to your customer account menu. To send customers to the Subscription Manager when they sign in, see Sending customers to the Subscription Manager at sign-in.


Add the Subscription Manager code

  1. Open the theme code editor on Shopify.
  2. Search in the list of files for a file called ordergroove_subscription_interface_link.liquid. If it exists, skip ahead to the Add link to the Subscription Manager section below.
  3. If it doesn’t exist, go to the Snippets folder and add a snippet called ordergroove_subscription_interface_link.liquid. In the blank new file, paste the following code:
snippets/ordergroove_subscription_interface_link.liquid
{% comment %}
Add the following code to your customer account page to render this snippet.
{%- render 'ordergroove_subscription_interface_link' -%}
{% endcomment %}
{% if customer %}
<p><a href="/apps/subscriptions/manage/" class="btn btn--small">Manage Your Subscriptions</a></p>
{% endif %}
Existing snippets

If your theme already has this snippet, it may start with a comment saying not to change the file because Ordergroove can overwrite it. Ordergroove no longer updates this file, so you can edit it. Older versions of the snippet add customer, customer_signature, and customer_timestamp parameters to the link. The Subscription Manager no longer needs them, so we recommend removing them and using the link shown above.


  1. Open the theme code editor on Shopify.
  2. Find the file for the accounts page. In older themes, this is usually templates/customers/account.liquid. In Online Store 2.0 themes such as Dawn, templates/customers/account.json points to a section file, usually sections/main-account.liquid.
  3. Add the following line of code to your customer account page:
{%- render 'ordergroove_subscription_interface_link' -%}

Here is an example in the Debut theme’s customers/account.liquid:

Shopify theme code editor with the Debut theme's customers/account.liquid open, and the render line for ordergroove_subscription_interface_link outlined in red, after the account details block and before the closing div tags.

This line of code will create a button that takes the customer to the Subscription Manager. You can move that line of code to change where the button is placed on this page.