Dawn version 8.0 no longer pass selling_plan in payload

Dawn version 8.0 no longer pass selling_plan in payload

ericute
Shopify Partner
58 4 10

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.

ericute_1-1676610646010.png

 

Here is a sample payload from previous version

Screen Shot 2023-02-17 at 1.11.45 PM.png

 

What should we do so shopify knows that the added product is a subscription?

Replies 2 (2)

Brian_S
Shopify Partner
160 21 40

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

Brian Singer
CTO & Cofounder of Subscription Service - Awtomic

EcomGraduates
Shopify Partner
632 52 90

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:

  1. 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.

  2. 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.

  3. 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:

  • In your theme code, find the form element for the cart, which will look something like this:

 

<form action="/cart" method="post" novalidate>
  ...
</form>

 

 

  • Inside the form element, find the input element for the variant ID, which will look something like this:

 

<input type="hidden" name="id" value="{{ item.variant_id }}" data-cart-item-id="{{ item.key }}">

 

 

  • Add a new input element for the selling plan, like this:

 

<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