A user shares a workaround for finding a subscription product’s selling plan ID in Shopify, which is needed to generate add-to-cart links but isn’t easily accessible through the admin interface.
The Method:
Navigate to the live product page
View page source (Ctrl + U or right-click)
Search for “selling_plan_id” or “selling_plan.id” using browser search (Ctrl + F)
Use the number that follows
Community Response:
Multiple users confirm this method works and express frustration that Shopify doesn’t make this field more accessible. One user reports the method fails for their multi-variant subscription products, finding incorrect IDs in the HTML. Another user questions whether a live website is required first, creating a circular dependency issue.
Current Status:
The workaround remains functional as of December 2024, though limitations exist for complex product setups. No official Shopify solution or simpler alternative has been identified.
Summarized with AI on October 26.
AI used: claude-sonnet-4-5-20250929.
Recently I needed to find the selling plan ID for a new subscription product in our store. We needed it so that we could generate a short add-to-cart link which required the ID number.
However, I couldn’t find any Shopify resources about how to find this number. Shopify Support suggested I use an API, but that seemed too complex for what I needed.
After tinkering around a bit, I was able to find the ID in a fairly easy/straightforward way. This will probably be pretty obvious to advanced Shopify users, but I wanted to share with other basic users like myself just in case it may be helpful.
Go to the live product page on your website
Press Ctrl + U on your keyboard or right click and select “View page source”
In the tab that opens, press Ctrl + F to open the page search function of your browser
Search for “selling_plan_id” ( or you may need to search for “selling_plan.id” ) on the page and use the number that directly follows
Hello - I am having issues finding mine. When I go to the product page and search for it, it keeps giving me a product selling plan id for a different product. We have dozens of subscription products with variants. I can find all of my existing products because my dev has them all in our code neatly organized.
But now looking to create a new product and this method does not work for my site.
Is there any other way to find the selling plan id?
Here is the link for a 3 month plan. When you search through the HTML you will find the incorrect selling plan id for a 6 month plan. (I have double checked it is in fact the 6 month plan ID)
I have not yet been able to find a selling plan id and it seems there must be some logical way to do something this simple. Plus, could there not be a permalink generator rather than putting together code and first trying to find the codes that would be used?
Go to the live product page on your website
I assume you would have to have already made a web site displaying the product. I assume you are not talking about an shopify online store page. In order to make the page I need to first get the selling code id. Is there a simple way of making permalinks for buying a product? Is there a way of knowing the selling plan ID?