Hi all
In Shopify Is there a way to pass values/dynamic data between the Checkout UI Extension and an Order Discount - Function with a trigger function to apply the discount dynamically
Usecase: we are creating a form In Checkout page using Checkout UI Extension and on submit of the form we need to call Order Discount - Function to apply discount + FreeShipping
Hi Bornshiva - This tutorial shows how to pass a metafield value from a checkout extension to a bundle function, so you could try a similar method for passing to a order discount function. Hopefully this will work for your use case?
Hi Liam – It looks like that method relies on taking data from a metafield and putting into cart line attributes to pass between apps. Unfortunately, attributes are not protected. They may be hidden from the UI (or may not, depending on theme and notifications code), but they can be read and modified by any app, inspecting browser, show up in Admin, etc. So they cannot be relied on and cannot hold any private information.
Is it possible for Extensions within the same app – like a Checkout UI Extension and a Product Discount extension – to share private cart metafields, buyerIdentity metafields (not customer, so can work with guest checkout), or similar?