Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit ccb0070

Browse files
add error message on the product type (#8361)
1 parent 58b8121 commit ccb0070

File tree

6 files changed

+10
-2
lines changed

6 files changed

+10
-2
lines changed

src/guides/v2.3/graphql/mutations/add-bundle-products.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ Attribute | Data Type | Description
247247

248248
Error | Description
249249
--- | ---
250+
`Could not find a cart with ID "XXX"` | The specified `cart_id` value does not exist in the `quote_id_mask` table.
250251
`Could not find a product with SKU "XXX"` | A simple product with the SKU specified in the `data.sku` argument does not exist.
251-
`Could not find a cart with ID "XXX"` | The specified `cart_id` value does not exist in the `quote_id_mask` database table.
252252
`Required parameter "cart_id" is missing` | The `cart_id` argument is omitted or contains an empty value.
253253

254254
## Related topics

src/guides/v2.3/graphql/mutations/add-configurable-products.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,12 @@ Attribute | Data Type | Description
144144

145145
Error | Description
146146
--- | ---
147+
`Could not find a cart with ID "XXX"` | The specified `cart_id` value does not exist in the `quote_id_mask` table.
147148
`Could not add the product with SKU configurable to the shopping cart: The product that was requested doesn't exist. Verify the product and try again.` | The simple product with the SKU specified in the `data`.`sku` attribute does not exist.
148149
`Could not find a product with SKU "XXX"` | The configurable product with SKU specified in the `parent_sku` argument does not exist.
149150
`Could not find specified product.` | The simple product specified in the `data`.`sku` argument is not assigned to the configurable product provided in the `parent_sku` attribute.
150151
`Required parameter "cart_id" is missing` | The `cart_id` argument was omitted or contains an empty value.
152+
`Required parameter "cart_items" is missing` | The `cart_items` argument was omitted or contains an empty array.
151153
`Required parameter "email" is missing` | The `email` argument was omitted or contains an empty value.
152154
`The requested qty is not available` | The requested quantity specified `data`.`quantity` is not available.
153155

src/guides/v2.3/graphql/mutations/add-downloadable-products.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ Attribute | Data Type | Description
258258

259259
Error | Description
260260
--- | ---
261+
`Could not find a cart with ID "XXX"` | The specified `cart_id` value does not exist in the `quote_id_mask` table.
262+
`Could not find a product with SKU "YYY"` | A product with the SKU specified in the `data`.`sku` argument does not exist.
261263
`Required parameter "cart_id" is missing` | The mutation does not contain a `cart_id` argument.
262264
`Required parameter "cart_items" is missing` | The `cart_items` argument is empty or is not of type `array`.
263265
`Please specify product link(s).` | You tried to add a downloadable product in which the `Links can be purchased separately` option is enabled, but you did not specify individual product links.

src/guides/v2.4/graphql/mutations/add-bundle-products.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ Attribute | Data Type | Description
242242

243243
Error | Description
244244
--- | ---
245-
`Could not find a product with SKU "XXX"` | A simple product with the SKU specified in the `data.sku` argument does not exist.
246245
`Could not find a cart with ID "XXX"` | The specified `cart_id` value does not exist in the `quote_id_mask` database table.
246+
`Could not find a product with SKU "XXX"` | A simple product with the SKU specified in the `data.sku` argument does not exist.
247247
`Required parameter "cart_id" is missing` | The `cart_id` argument is omitted or contains an empty value.
248248

249249
## Related topics

src/guides/v2.4/graphql/mutations/add-configurable-products.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,12 @@ Attribute | Data Type | Description
139139

140140
Error | Description
141141
--- | ---
142+
`Could not find a cart with ID "XXX"` | The specified `cart_id` value does not exist in the `quote_id_mask` table.
142143
`Could not add the product with SKU configurable to the shopping cart: The product that was requested doesn't exist. Verify the product and try again.` | The simple product with the SKU specified in the `data`.`sku` attribute does not exist.
143144
`Could not find a product with SKU "XXX"` | The configurable product with SKU specified in the `parent_sku` argument does not exist.
144145
`Could not find specified product.` | The simple product specified in the `data`.`sku` argument is not assigned to the configurable product provided in the `parent_sku` attribute.
145146
`Required parameter "cart_id" is missing` | The `cart_id` argument was omitted or contains an empty value.
147+
`Required parameter "cart_items" is missing` | The `cart_items` argument was omitted or contains an empty array.
146148
`Required parameter "email" is missing` | The `email` argument was omitted or contains an empty value.
147149
`The requested qty is not available` | The requested quantity specified `data`.`quantity` is not available.
148150

src/guides/v2.4/graphql/mutations/add-downloadable-products.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ Attribute | Data Type | Description
261261

262262
Error | Description
263263
--- | ---
264+
`Could not find a cart with ID "XXX"` | The specified `cart_id` value does not exist in the `quote_id_mask` database table.
265+
`Could not find a product with SKU "YYY"` | A product with the SKU specified in the `data`.`sku` argument does not exist.
264266
`Required parameter "cart_id" is missing` | The mutation does not contain a `cart_id` argument.
265267
`Required parameter "cart_items" is missing` | The `cart_items` argument is empty or is not of type `array`.
266268
`Please specify product link(s).` | You tried to add a downloadable product in which the `Links can be purchased separately` option is enabled, but you did not specify individual product links.

0 commit comments

Comments
 (0)