I am trying to create a link that will take the customer to a cart in my store that is preloaded with certain products. How do I do this? It seems that I can only do this with a variant of a product, but that makes no sense.
With permalinks, checkoutlinks, or the ajax api
https://community.shopify.com/c/shopify-design/cart-use-permalinks-to-pre-load-the-cart/td-p/613702
https://shopify.dev/apps/channels/cart-permalinks
https://help.shopify.com/en/manual/products/details/checkout-link
Hi @Charles_Fraune ,
This will be a complicated requirement for a beginner. If you have experience, you can follow the steps, it will work fine:
- Step 1: You create a page to make the link to the cart page, after creating you add the following code:
Here you need to add product id variant and quantity according to your wish. And you can add as many products as you want, this will require you to have experience getting ID variant.
- Step 2: After you create the page, you just need to send this link to the customer, it will automatically add the product and take the customer to the page cart.
Hope it helps!
These seem to only be addressing variants and not a regular product. A Shopify rep confirmed this as well. I don’t want to use variants but four different products. Am I missing something? I tried this, as prescribed in these links, but it did not work because I was not using a product VARIANT ID but multiple different PRODUCT IDs.
Thanks
Thank you for your help. However, this advice, as in the other links offered by someone, addresses product VARIANT IDs and not multiple PRODUCT IDs. It seems to work only with VARIANTS and not with multiple different PRODUCTS. I want to create a link to a preloaded cart with four/five different products. I have attempted the primary solution and it did not work. A Shopify rep confirmed that this is possible only with VARIANTS but that doesn’t make sense.
Thanks!
Hi @Charles_Fraune ,
Do your products have variants? Because if the product has multiple variants, you are forced to add to cart variants instead of the products.
If products don’t have variants, you can add default id, it will add to cart product. You can get default ID by adding .json after each product, ex: abc.myshopify.com/products/test.json
It will show ID at ‘Default Title’, refer:
Hope it is clear to you.
After this page is created, what will it look like? I followed these directions and created a page but, when I click on the page, it is blank and it does not redirect to a cart preloaded with the products. I found and added the variants to the code you posted. Thanks
Hi @Charles_Fraune ,
Can you send me the page link and product link. I will check it.

