learnshopify.dev/Workspace
local task

Have your agent finish the Function, so that it merges a complete bundle.

Pass criterion: Your Function builds and gives the right answer for three test carts, one of them a bundle without a discount.
$ npx @learnshopifydev/cli check write-lines-merge
1. Replace everything in `src/cart_transform_run.ts` with this

The file is in `extensions/bundle-cart-transform`. Three places say `YOUR CODE`, and your agent fills those in.

2. Give your agent the job

Paste this message to your agent.

3. Read what your agent wrote

Check the four numbered points from your message against the code. The discount has to come from the rule, not from a number written in the code.

4. Build the Function

When it builds without an error, commit: `git add -A`, then `git commit -m "Function merges a bundle"`.

0 / 1 task solved