Shopify external link to the cart or checkout with Recharge app

Highlighted
Shopify Expert
1 0 0

favorite

So my goal is to create an external link for a banner which will lead to the checkout page (or cart page) with a specific product in it. The problem is that it has to use recharge app because the products are subscriptions. When checkout the url is

checkout_url= "https://checkout.rechargeapps.com/r/checkout?myshopify_domain="+myshopify_domain+"&cart_token="+token+"&"+ga_linker+"&"+customer_param;

with cart token. The token is generated when the product is added to the cart. And here is the problem. If the product is removed from the cart the token is also removed and the URL doesn't work. I found this KB from recharge app but I'm not sure how to use it. I was thinking for URL

https://domain.myshopify.com/cart/{product_id}:{quantity}

but it sends to shopify checkout page not recharge app.

https://domain.myshopify.com/cart/add?id={product_id}

This URL sends to the cart but when the product was added this way a token is not generated and clicking on checkout button sends to shopify checkout.
Any help will be appreciated.

0 Likes
Highlighted
New Member
1 0 0

Wondering if you found the solution to this. Stuck in a similar situation 

0 Likes