App reviews, troubleshooting, and recommendations
query RunInput { cart { lines { id quantity merchandise { __typename ... on ProductVariant { id } } } } discountNode { metafield( namespace: "$app:product-discount" key: "function-configuration" ) { value } } }
I have created an extensions named product-discount to give automatic discounts based on products on cart. The extension gave me run.js and run.graphql files.
I have created an discount using GraphiQL App. Also I am getting that value using that app.
{ "id": "gid://xxx", "metafields": { "edges": [ { "node": { "id": "gid://xxx", "value": "{\"value\":\"42\"}", "namespace": "app--xx--product-discount" } } ] }, "discount": { "startsAt": "2022-06-22T00:00:00Z", "endsAt": null } }
But while I am running the code and debug, the discountNode always giving null.
What could be the problem?
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024