From 4b1f5a66c219f213a5c0c5f04b5a5d5e36bbcd47 Mon Sep 17 00:00:00 2001 From: jhadobe Date: Tue, 14 Jan 2025 09:40:27 -0600 Subject: [PATCH 1/4] Adding ItemsV2 to tutorial --- .../tutorials/checkout/add-product-to-cart.md | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/pages/graphql/tutorials/checkout/add-product-to-cart.md b/src/pages/graphql/tutorials/checkout/add-product-to-cart.md index 0d267c707..3015e9bc1 100644 --- a/src/pages/graphql/tutorials/checkout/add-product-to-cart.md +++ b/src/pages/graphql/tutorials/checkout/add-product-to-cart.md @@ -32,7 +32,7 @@ The following mutation adds a simple product into the shopping cart. Replace `{ CART_ID }` with the unique shopping cart ID from [Step 2. Create empty cart](../../tutorials/checkout/add-product-to-cart.md). -In this example, we will add the Aim Analog Watch (SKU 24-MG04) from the default Luma catalog to the cart. The SKU identifies the product to be added. +In this example, we will add the Salt Water Magazine (SKU VDL01) from the default Luma catalog to the cart. The SKU identifies the product to be added. **Request:** @@ -45,20 +45,22 @@ mutation { { data: { quantity: 1 - sku: "24-MG04" + sku: "VDL01" } } ] } ) { cart { - items { - id - product { - sku - stock_status + itemsV2 { + items { + id + product { + sku + stock_status + } + quantity } - quantity } } } @@ -76,7 +78,7 @@ mutation { { "id": "5", "product": { - "sku": "24-MG04", + "sku": "VDL01", "stock_status": "IN_STOCK" }, "quantity": 1 @@ -135,7 +137,7 @@ mutation { { "id": "5", "product": { - "sku": "24-MG04", + "sku": "240-LV04", "stock_status": "IN_STOCK" }, "quantity": 1 From 208baaa23d160271d1e7ed3bcdea9dfd09eab563 Mon Sep 17 00:00:00 2001 From: jhadobe Date: Tue, 14 Jan 2025 09:44:40 -0600 Subject: [PATCH 2/4] typo --- src/pages/graphql/tutorials/checkout/add-product-to-cart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/graphql/tutorials/checkout/add-product-to-cart.md b/src/pages/graphql/tutorials/checkout/add-product-to-cart.md index 3015e9bc1..b4d0e2fb0 100644 --- a/src/pages/graphql/tutorials/checkout/add-product-to-cart.md +++ b/src/pages/graphql/tutorials/checkout/add-product-to-cart.md @@ -137,7 +137,7 @@ mutation { { "id": "5", "product": { - "sku": "240-LV04", + "sku": "24-MG04", "stock_status": "IN_STOCK" }, "quantity": 1 From f05972545ef8572f2e7ed7b4d7904cde3c0da1a1 Mon Sep 17 00:00:00 2001 From: jhadobe Date: Tue, 14 Jan 2025 11:22:52 -0600 Subject: [PATCH 3/4] revert --- src/pages/graphql/tutorials/checkout/add-product-to-cart.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/graphql/tutorials/checkout/add-product-to-cart.md b/src/pages/graphql/tutorials/checkout/add-product-to-cart.md index b4d0e2fb0..6a7cc5238 100644 --- a/src/pages/graphql/tutorials/checkout/add-product-to-cart.md +++ b/src/pages/graphql/tutorials/checkout/add-product-to-cart.md @@ -32,7 +32,7 @@ The following mutation adds a simple product into the shopping cart. Replace `{ CART_ID }` with the unique shopping cart ID from [Step 2. Create empty cart](../../tutorials/checkout/add-product-to-cart.md). -In this example, we will add the Salt Water Magazine (SKU VDL01) from the default Luma catalog to the cart. The SKU identifies the product to be added. +In this example, we will add the Aim Analog Watch (SKU 24-MG04) from the default Luma catalog to the cart. The SKU identifies the product to be added. **Request:** @@ -45,7 +45,7 @@ mutation { { data: { quantity: 1 - sku: "VDL01" + sku: "24-MG04" } } ] From 56dadeafe38acefb833cb91481d9a505f5cc7769 Mon Sep 17 00:00:00 2001 From: jhadobe Date: Tue, 14 Jan 2025 11:23:27 -0600 Subject: [PATCH 4/4] revert 2 --- src/pages/graphql/tutorials/checkout/add-product-to-cart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/graphql/tutorials/checkout/add-product-to-cart.md b/src/pages/graphql/tutorials/checkout/add-product-to-cart.md index 6a7cc5238..c34299d46 100644 --- a/src/pages/graphql/tutorials/checkout/add-product-to-cart.md +++ b/src/pages/graphql/tutorials/checkout/add-product-to-cart.md @@ -78,7 +78,7 @@ mutation { { "id": "5", "product": { - "sku": "VDL01", + "sku": "24-MG04", "stock_status": "IN_STOCK" }, "quantity": 1