A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi everyone, i need assistance with a task. When submitting a product form, the product's price, determined by multiplying the base price per meter of fabric (retrieved from a metafield) with a user-input value, needs to be updated. This price change should only affect the current session, not the entire inventory. I've already set up a serverless function to fetch the base price per meter using the product ID. Could you guide me on how to adjust the cart session price using GraphQL APIs, without creating a custom app? Or do you have other solutions?
Hey @Cindy29
One approach would be to set the price as 'per meter' and then treat the quantity (user input) as the number of meters. This would also eliminate the external request - would this suit?
Scott | Developer Advocate @ Shopify