learnshopify.dev/Workspace
store task

Use your bundle app once as a store owner and once as a customer, from creating a bundle to deleting it.

Pass criterion: Your store has one Evening Ritual Bundle with its discount in the rule on both products, nothing is left of Starter Bundle, and your Function is registered.
1. Start your app

If it is already running, leave it.

2. As the store owner: create a bundle with a discount

Open Bundles in your app and click Create bundle. Make `Starter Bundle` with 1 House Blend 250g, 1 Ceramic Dripper and a discount of 20.

3. As the store owner: put Starter Bundle in your online store

In the list, click its title. In the Publishing section add Online Store, then save.

4. As a customer: put one House Blend 250g and one Ceramic Dripper in the cart

Click Online Store, then View your store. The cart shows one line, Starter Bundle, for 20 percent less than the two products cost together.

5. Empty the cart, then add Starter Bundle itself

This is the other way to buy it. The cart shows one line again, at the same price.

6. As the store owner: delete Starter Bundle in your app

Click Delete in its row and confirm. The row is gone, and so is the product in Products.

7. As a customer: put the same two products in the cart again

The cart now shows two lines at their normal prices. The delete took the rule off both products, so your Function has nothing to merge.

8. Look at what your Function did

Pick the newest run, which is at the top. The command runs your Function again on that cart and shows its answer, and it stops when you press `q`.

0 / 1 task solved