Subscription app post-purchase portal navigation

Subscription app post-purchase portal navigation

SepehrHengam
Visitor
2 0 1

Hey community,

 

In developing a subscription application, one of Shopify's requirements is as follows:

Post-purchase

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

Replies 2 (2)

sajid_304
Shopify Partner
1 0 0

Hey @SepehrHengam did you manage to do this ?? 

mojtaba1468
Shopify Partner
1 0 0

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>`
  );
}