This tool builds a Shopify cart link, which Shopify calls a cart permalink: one URL that loads the products and quantities you choose.
How to use it
- Enter your store domain, for example my-shop-name.myshopify.com.
- Add one or more variant IDs, each with a quantity.
- Optionally, add a discount code.
- Optionally, add a referral code (ref) and choose to open the cart instead of checkout.
- Copy the cart link.
How Shopify cart links work
Shopify documents the format in its Help Center and in its developer docs. You start with your store domain, add /cart/, then each variant as variant ID:quantity. Several variants are separated by commas.
| What you want | Link |
|---|---|
| One item | https://my-shop-name.myshopify.com/cart/36485954240671:1 |
| Several items | https://my-shop-name.myshopify.com/cart/36485954240671:3,31384149360662:1 |
| With a discount code | https://my-shop-name.myshopify.com/cart/36485954240671:1?discount=15off |
A few things Shopify's documentation says about these links:
- They go to checkout by default. Shopify also documents a storefront=true parameter that sends shoppers to the online store cart instead, so they can add to or change their cart.
- Discounts use the discount parameter. Add ?discount=CODE to apply a code. Shopify's developer docs add that several codes can be separated by commas, and that codes containing a comma can't be passed this way.
- They're reusable. The same link creates a new checkout for each customer, so you can share it in emails, social posts or chat messages.
- Two limits. Selling plans (such as subscriptions) don't work with cart permalinks, and cart permalinks can't bypass a storefront password.
Finding a variant ID
Shopify's guide to finding a variant ID gives three ways:
- Product with variants. In your Shopify admin, go to Products, open the product, click the variant, and look at the address bar. The number after /variants/ is the variant ID.
- Product without variants. Open the product in your Shopify admin, add .json to the end of the URL in the address bar, and find the id under product, then variants.
- Many products at once. In Analytics, then Reports, create a new exploration with the metric Percent of inventory sold and the dimensions Product title, Product variant title and Product variant ID. You can save or export it.
Which domain to use
Shopify's examples use the store's myshopify.com address. If your store has a custom primary domain, Shopify redirects the myshopify.com address to it, so the myshopify.com form is a safe choice.
Tips and common mistakes
- Product ID instead of variant ID. In an admin URL like /products/1234567/variants/36485954240671, the product ID is the number after /products/. The link needs the one after /variants/.
- Create the discount code before you build the link. The link applies an existing code from your Shopify admin; it doesn't create one.
- Test in a private window. Open the link where you're not logged in, check the items, quantities and discount, then send it.
- Recheck links you reuse. A cart link points at fixed variants. If one is deleted or sold out, the link won't swap in another, so test it again before a new campaign.
- Check how UTM tags report. Shopify's cart permalink pages don't mention UTM parameters. If you add them, place a test order and look at your marketing reports before relying on them. For conversion tracking, Shopify's developer docs describe a ref parameter, shown as a referral code in the order's Conversion summary.
More free tools are on the tools page.
Where Bioshelf fits
Bioshelf doesn't create cart links. It's a link-in-bio page for Shopify stores, launching soon on the Shopify App Store, and its product cards open the product page, where shoppers pick a size or colour. This tool is for your other links: DMs, emails and QR codes.
On install, Bioshelf builds your page from your store, and UTM parameters are added automatically to every link to your store. A page shows up to 12 products. One plan: $14/month, with a 7-day free trial.
Sources
- Shopify Help Center - Cart permalinks, checked on 26 September 2026
- Shopify.dev - Create cart permalinks, checked on 26 September 2026
- Shopify Help Center - Find a variant ID, checked on 26 September 2026
- Shopify Help Center - Change your primary domain, checked on 26 September 2026