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

"Auto-add bundle components to orders, post-purchase": update for line item groups #411

Open
isaacbowen opened this issue Oct 15, 2024 · 2 comments
Assignees

Comments

@isaacbowen
Copy link
Member

A merchant wrote in:

https://tasks.mechanic.dev/auto-add-bundle-components-to-orders-post-purchase

in your template you look for bundles with bundle_parent_sku but in new native shopify bundles they are using line-item-group
https://shopify.dev/docs/api/admin-graphql/2024-07/objects/LineItem#field-lineitemgroup
can you support with an update for this please?

using new native bundles shopify only passes down the line item sku in the order json, and not the parent bundle sku ( line-item-group).

@tekhaus Can you investigate?

@tekhaus tekhaus self-assigned this Oct 15, 2024
@tekhaus
Copy link
Collaborator

tekhaus commented Oct 16, 2024

I am fairly certain that this would need to be a completely separate task, to work with native bundles versus bundles configured in the task as is done here.

I'll investigate further and post back here.

@tekhaus
Copy link
Collaborator

tekhaus commented Oct 17, 2024

Native bundles are entirely controlled by whichever bundles app the merchant has installed. When a native bundle is on an order, then it gets expanded automatically in the cart/checkout to show the components, and those appear as line items on the resulting order, so there is no need to add them post-purchase.

Perhaps further qualification is needed from the merchant on the exact use case, since the one covered by the task already seems to be handled natively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants