My subscriptions app seems to not be working properly. What am I doing wrong?

z04r
Shopify Partner
4 0 4

Hello guys, I'm trying to build a subscription app. My goal is to have one product that can be only purchased as a subscription (monthly subscription).

 

What I'm currently doing:

 

1. I create a random product (let's say with a price of $15)

2. I create a SellingPlanGroup

3. I add the product created to this SellingPlanGroup and I also update the property "

requiresSellingPlan" to true on the product. Meaning it can be only purchased through subscription.
 
Basically what is happening is: Once I try to checkout the product after doing this, the total of the purchase says $0 and it asks me for an address for delivery, once I put a random address, it says: "This order can’t be shipped to the address you entered. Review your address to ensure that all fields have been entered correctly and try again." and I can't do anything.
 
Am I missing any step or what should I do? I'm running a test store (development store) in order to test the app.
 
Before doing the steps I said, I am being able to purchase the product ( as a one-time payment, not subscription of course ).
Reply 1 (1)

qc11
Shopify Staff (Retired)
47 14 12

Hi,

 

You would probably want to check whether your delivery profile has been configured properly for this new product.

 

Alternatively, you can also attach a delivery profile to a specific selling plan group:

https://shopify.dev/docs/api/admin-graphql/2023-01/mutations/deliveryProfileCreate#field-deliverypro...

 

Hope this helps!

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