Shopify Functions allow developers to customize the backend logic that powers parts of Shopify.
Hi,
I've successfully followed a few of the docs tutorials but am currently trying to write a delivery customization to update the standard delivery cost to $0 during checkout for specific customers and I'm not sure how to update the delivery cost using Shopify functions.
My graphQL query input is correct, so I have the cost amount value in my input response but if I try to simply grab the standard deliveryOption object and update the amount property of the cost property, it tells me the function has returned invalid JSON (in admin).
The docs use a return operation array that uses a HideOperation and theres also a RenameOperation & MoveOperation but none of those support changing the delivery cost, only the titles. Can anyone please let me know how to simply update the value of the delivery option cost using a Shopify function, any help is greatly appreciated.
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023