Hi everyone,
We’re currently saving some custom data inside a Discount Node metafield (using Shopify Functions / Admin API). Now we want to retrieve this metafield value in Liquid on the storefront, but we’re not sure if Liquid has access to discount-level metafields.
Questions:
-
Is it possible to read discount node metafield values directly in Liquid?
-
If yes, what is the correct Liquid object or reference to access them?
-
If not possible, what’s the recommended workaround? (For example: duplicating data into a product/collection/shop metafield, using cart attributes, or exposing via Ajax API, etc.)
Any guidance or examples would be really appreciated!
Thanks in advance.