Checkout Url Parameter for Selling Plan

rb_sss
Shopify Partner
7 0 2

Hi there,

 

I'm working on a buy now an option for my products and currently, it works with one-time purchases with the following link:

https://www.myshop.com/cart/{VariantId}:{Quantity}

 

I'm wondering where/how to add the selling plan parameter to the checkout URL. 

 

I've tried so far:

https://www.myshop.com/cart/{VariantId}:{Quantity}:{SellingPlanId}

https://www.myshop.com/cart/{VariantId}:{SellingPlanId}:{Quantity}

https://www.myshop.com/cart/{VariantId}:{Quantity}?checkout[selling_plan]={SellingPlanId}

 

I'm using recharge for the subscriptions. 

 

EDIT:

I've found a solution: https://community.shopify.com/c/shopify-design/pre-load-cart-with-subscription-plan-products-using-p...

 

It's not quite what I had in mind but it does the job! 🙂 

Reply 1 (1)

NPeneycad
Shopify Staff
13 3 3

Hi @rb_sss, glad you were able to find a solution. Cheers!

To learn more visit the Shopify Help Center or the Community Blog.