mechanic-tasks icon indicating copy to clipboard operation
mechanic-tasks copied to clipboard

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

Open isaacbowen opened this issue 1 year ago • 2 comments

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?

isaacbowen avatar Oct 15 '24 14:10 isaacbowen

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 avatar Oct 16 '24 21:10 tekhaus

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.

tekhaus avatar Oct 17 '24 05:10 tekhaus