"Auto-add bundle components to orders, post-purchase": update for line item groups
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?
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.
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.