Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hey community,
In developing a subscription application, one of Shopify's requirements is as follows:
The subscription app must include navigation to a customer portal, both on the order status page and through a post-purchase email to a merchant's customers so that they're able to manage their subscription.
Could someone guide us on how we can add this link to the post-purchase page? I believe we don't have direct access.
Thank you,
Sep
Hi there,
You can add a javascript using ScriptTag and in your js, add such a code. This will insert a box in the order status page.
if (Shopify.checkout?.customer_id && Shopify.Checkout.hasSellingPlan) {
Shopify.Checkout.OrderStatus.addContentBox(
"<h2>Subscription</h2>",
`<p>Continue to your account to view and manage your subscriptions. Please use this link ... </p>`
);
}
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025