Open allan-hodlfy opened 2 years ago
Updated label to enhancement, I can understand this use case.
We have the same issue, we need access to the discouns metafieldas... any progress?
Yes, same here. When a customer adds a discount code we want to gift them a free product. We can add the product with a checkout extension UI component. However, we need to be able to access the discount configuration so we know what product to add.
Any update on this?
Please list the package(s) involved in the issue, and include the version you are using
Describe the bug
When creating a product_discount extension / shopify function, we are adding metafield data into a namespace/key that is attached to the new discount being created.
Our expectation was that we could then read this metafield data from the checkout-ui-extension by specifying the namespace/key in the shopify.ui.extension.toml file.
However, the data is not being shown in the extension appMetafields.
After some discussion in the Shopify discord, it was mentioned that this use case may not have been considered yet. https://discord.com/channels/842813079926603828/993570246361362462/994316477442302093
Steps to reproduce the behavior:
Expected behavior
Expectation is that metafield data for the specified namespace/key combo will be available for the checkout ui extension to view and use when rendering the checkout extension.