For discussing the development and integration of subscription-enabled shops using Shopify's Subscription APIs.
We've noticed that the new version of Dawn (v8.0) no longer pass selling_plan in the payload. When a subscription product is added to cart, it doesn't get registered as a subscription.
Sample payload of Dawn 8.0.
Here is a sample payload from previous version
What should we do so shopify knows that the added product is a subscription?
Hey Eric -
This is the responsibility of the subscription app to make sure the input field with `name="selling_plan"` gets put into the form that's submitted
If you had a custom plan selector installed in your theme prior to upgrading to version 8, you'll have to re-install that plan selector. If you're using an app embed, make sure its enabled.
We've tested on Dawn v8 and there's nothing to prevent selling_plan from being added to the form data
Hello there
If the selling_plan is not being passed in the payload in the new version of Dawn (v8.0), it can cause issues with registering subscription products in the cart. Here are a few potential solutions:
Make sure your subscription products are set up correctly: Double-check that your subscription products are set up correctly in your Shopify admin. This includes making sure the product has a selling plan attached, and that the selling plan is configured correctly.
Check your theme code: If the selling plan is not being passed in the payload, it's possible that there is an issue with the theme code. You can try checking the cart.liquid
and cart-item.liquid
templates to see if the selling plan is being referenced correctly.
Update your theme code: If you've confirmed that the issue is with the theme code, you can try updating the code to include the selling plan in the payload. Here's an example of how to do this:
form
element for the cart, which will look something like this:
<form action="/cart" method="post" novalidate>
...
</form>
<input type="hidden" name="id" value="{{ item.variant_id }}" data-cart-item-id="{{ item.key }}">
<input type="hidden" name="properties[_selling_plan_id]" value="{{ item.properties['_selling_plan_id'] }}">
If this fixed your issue, likes and accepting as a solution are highly appreciated
| Build an online presence with our custom-built Shopify Theme: EcomifyTheme
| Check out our reviews: Trustpilot Reviews
| We are Shopify Partners: EcomGraduates Shopify Partner