Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POS - Write cart metafield API #2404

Open
patryk-smc opened this issue Oct 4, 2024 · 0 comments
Open

POS - Write cart metafield API #2404

patryk-smc opened this issue Oct 4, 2024 · 0 comments
Labels
enhancement New feature or request POS UI Extensions

Comments

@patryk-smc
Copy link

Please list the related package(s)

    "@shopify/ui-extensions": "2024.10.0",
    "@shopify/ui-extensions-react": "2024.10.0",

If this related to specific APIs or components, please list them here

POS

Is your feature request related to a problem? Please describe.

In our checkout extensions, we use useApplyMetafieldsChange to add extra data to orders. We aim to maintain a single source of truth for all orders and ensure a consistent process across both checkout and POS. However, the POS only supports addCartProperties, which appears to be limited to cart attributes.

Describe the changes you are looking for

Add an option to write POS cart metafields, similar to checkout.

Describe alternatives you’ve considered

We considered using addCartProperties, but since we pass a significant amount of data in JSON format, it shouldn't be exposed to everyone. Additionally, merchants rely on existing systems that reference our metafield, and they would need to update their integrations. As a public app, this would be quite challenging.

Additional context

@patryk-smc patryk-smc added the enhancement New feature or request label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request POS UI Extensions
Projects
None yet
Development

No branches or pull requests

2 participants