Liquid, JavaScript, themes, sales channels
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>`
);
}
User | RANK |
---|---|
37 | |
28 | |
14 | |
13 | |
9 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023