learnshopify.dev/Workspace
local task

Add the bundle rules to your Function's input query.

Pass criterion: Your input query asks for the metafield `custom.component_parents` on each product in the cart.
$ npx @learnshopifydev/cli check the-input-query-decides-everything
1. Open `extensions/bundle-cart-transform/src/cart_transform_run.graphql` in your editor

It asks for the lines of a cart, with the `id` and `quantity` of each. A line is one product in the cart.

2. Paste this inside `lines`, under `quantity`, and save

`merchandise` is the product on a cart line. Keep the name `bundleRules`, because the code in the next lesson uses it.

3. Check the query

If it ends without an error, the query is correct.

0 / 1 task solved