learnshopify.dev/Workspace
local task

Have your agent turn the Bundles page into a form with a discount, then create `Evening Ritual Bundle` with it.

Pass criterion: The Bundles page has a text box for the title, and `BundleLog` has a row for Evening Ritual Bundle with your store's address and the product's ID.
$ npx @learnshopifydev/cli check the-page-that-creates-a-bundle
1. Give your agent the job

Paste this message to your agent. The second part says where the discount has to be stored.

2. List the files that changed

You should see `app/routes/app.bundles.tsx`, and not `prisma/schema.prisma`.

3. Create a bundle with your form

With `shopify app dev` running, create `Evening Ritual Bundle` with 3 House Blend 250g, 1 Ceramic Dripper and a discount of 15. Use that exact title, because the check looks for it in the log.

4. Find the discount on the store

Open House Blend 250g in Products. The last rule in `component_parents` ends with `"price_adjustment":{"value":15}`, and that is the only place your Function can read the discount from.

5. Open Evening Ritual Bundle and put it in your online store

Its price is 15 percent under the compare-at price. A product your app creates is in no sales channel, so in the Publishing section add Online Store, then save.

6. Look at the log, then commit

`BundleLog` has one row, with your store's address, the title and a `productId`. Then commit: `git add -A`, then `git commit -m "Bundle form"`.

0 / 1 task solved