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>`
);
}
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024