Questions, troubleshooting, and feedback on Subscription APIs
Hey guys. We are trying to fetch sellingPlan info for our app. However, when I query the sellingPlanGroups, nothing is returned (img.1). On the other hand when I write a liquid snippet to access selling_plan_groups it displays everything correctly. I assume there's a problem with a graphql query or something. Or am I just looking in the wrong place? Any help is appreciated!
Hi, and thanks for the question. Is it possible that one of the products is attached to a selling plan only via the variant? If so, that would explain why the count from your GraphQL query is less than the result you get from Liquid. The `sellingPlanGroupCount` on the product returns the count of selling plans directly connected to the product. Maybe you can try querying `productVariant` rather than `product`, if it fits your use case?
Let me know if you have any further questions.
User | RANK |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023