From 029a6bd65f7703f1f66252f85fb66516d49e9b72 Mon Sep 17 00:00:00 2001 From: Donald Booth Date: Tue, 18 Jul 2023 09:38:34 -0700 Subject: [PATCH 1/4] Moved files to correct location --- .../schema}/product-recommendations/index.md | 0 .../schema}/product-recommendations/queries/index.md | 0 .../product-recommendations/queries/recommendations.md | 8 ++++---- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/pages/{_includes/graphql => graphql/schema}/product-recommendations/index.md (100%) rename src/pages/{_includes/graphql => graphql/schema}/product-recommendations/queries/index.md (100%) rename src/pages/{_includes/graphql => graphql/schema}/product-recommendations/queries/recommendations.md (96%) diff --git a/src/pages/_includes/graphql/product-recommendations/index.md b/src/pages/graphql/schema/product-recommendations/index.md similarity index 100% rename from src/pages/_includes/graphql/product-recommendations/index.md rename to src/pages/graphql/schema/product-recommendations/index.md diff --git a/src/pages/_includes/graphql/product-recommendations/queries/index.md b/src/pages/graphql/schema/product-recommendations/queries/index.md similarity index 100% rename from src/pages/_includes/graphql/product-recommendations/queries/index.md rename to src/pages/graphql/schema/product-recommendations/queries/index.md diff --git a/src/pages/_includes/graphql/product-recommendations/queries/recommendations.md b/src/pages/graphql/schema/product-recommendations/queries/recommendations.md similarity index 96% rename from src/pages/_includes/graphql/product-recommendations/queries/recommendations.md rename to src/pages/graphql/schema/product-recommendations/queries/recommendations.md index 6d283a482..75ed7cf6c 100644 --- a/src/pages/_includes/graphql/product-recommendations/queries/recommendations.md +++ b/src/pages/graphql/schema/product-recommendations/queries/recommendations.md @@ -4,14 +4,14 @@ edition: ee description: Describes how to construct and use the Product Recommendations recommendations query. --- -import BetaNote from '/src/pages/_includes/graphql/notes/beta.md' - # recommendations query - - The `recommendations` query returns information about product recommendation blocks for a given SKU. +Merchants must have both Product Recommendations and Catalog Service (v2.2.0+) installed to get complete data through the storefront gateway. + +Note that the `recommendations` query does not support the `alternateEnvironmentId` attribute. + ## Required headers You must specify the following HTTP headers to run this query. From 848ab7415bd0e19fc2cc0e201973626c4f809391 Mon Sep 17 00:00:00 2001 From: Donald Booth Date: Tue, 18 Jul 2023 10:18:28 -0700 Subject: [PATCH 2/4] Removed beta message --- src/pages/graphql/schema/product-recommendations/index.md | 4 ---- .../graphql/schema/product-recommendations/queries/index.md | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/pages/graphql/schema/product-recommendations/index.md b/src/pages/graphql/schema/product-recommendations/index.md index 517abce44..1127325ed 100644 --- a/src/pages/graphql/schema/product-recommendations/index.md +++ b/src/pages/graphql/schema/product-recommendations/index.md @@ -4,12 +4,8 @@ description: edition: ee --- -import BetaNote from '/src/pages/_includes/graphql/notes/beta.md' - # Product Recommendations - - Product Recommendations is a service that suggests products based on the browsing patterns of other shoppers. Product recommendations are surfaced on the storefront as units with labels, such as "Customers who viewed this product also viewed" or "Customers who bought this product also bought". You can create, manage, and deploy recommendations across your store views directly from the Adobe Commerce Admin. The `recommendations` query returns recommended products based on the provided SKU. diff --git a/src/pages/graphql/schema/product-recommendations/queries/index.md b/src/pages/graphql/schema/product-recommendations/queries/index.md index 14373f317..d4769be9d 100644 --- a/src/pages/graphql/schema/product-recommendations/queries/index.md +++ b/src/pages/graphql/schema/product-recommendations/queries/index.md @@ -4,12 +4,8 @@ description: edition: ee --- -import BetaNote from '/src/pages/_includes/graphql/notes/beta.md' - # Product Recommendations queries - - The following is a list of GraphQL queries for the Product Recommendations service for Adobe Commerce. * [recommendations](recommendations.md) From 2e7855491002b2b16c5ccc02c3d5764609d58b21 Mon Sep 17 00:00:00 2001 From: Donald Booth Date: Tue, 18 Jul 2023 11:28:01 -0700 Subject: [PATCH 3/4] Update src/pages/graphql/schema/product-recommendations/queries/recommendations.md Co-authored-by: Kevin Harper --- .../schema/product-recommendations/queries/recommendations.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/graphql/schema/product-recommendations/queries/recommendations.md b/src/pages/graphql/schema/product-recommendations/queries/recommendations.md index 75ed7cf6c..dc3f697c1 100644 --- a/src/pages/graphql/schema/product-recommendations/queries/recommendations.md +++ b/src/pages/graphql/schema/product-recommendations/queries/recommendations.md @@ -10,7 +10,9 @@ The `recommendations` query returns information about product recommendation blo Merchants must have both Product Recommendations and Catalog Service (v2.2.0+) installed to get complete data through the storefront gateway. -Note that the `recommendations` query does not support the `alternateEnvironmentId` attribute. + + +The `recommendations` query does not support the `alternateEnvironmentId` attribute. ## Required headers From 72c3e99c5acbde4c1b6eb9dd4045ab229f8a827a Mon Sep 17 00:00:00 2001 From: Donald Booth Date: Tue, 18 Jul 2023 11:28:11 -0700 Subject: [PATCH 4/4] Update src/pages/graphql/schema/product-recommendations/queries/recommendations.md Co-authored-by: Kevin Harper --- .../schema/product-recommendations/queries/recommendations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/graphql/schema/product-recommendations/queries/recommendations.md b/src/pages/graphql/schema/product-recommendations/queries/recommendations.md index dc3f697c1..fb611e15d 100644 --- a/src/pages/graphql/schema/product-recommendations/queries/recommendations.md +++ b/src/pages/graphql/schema/product-recommendations/queries/recommendations.md @@ -161,7 +161,7 @@ Field | Data type | Description `cartSKUs` | [String] | SKUs of the products in the cart. `category` | String | The category currently being viewed. `currentSKU` | String | SKU of the product currently being viewed on the product detail page. -`pageType` | Enum | Type of page on which recommendations are requested. Possible values are Cart, Category, Checkout, CMS, PageBuilder and Product. +`pageType` | PageType | An enum indicating the type of page on which recommendations are requested. Possible values are Cart, Category, Checkout, CMS, PageBuilder and Product. `userPurchaseHistory` | [PurchaseHistory] | User purchase history with timestamp. `userViewHistory` | [ViewHistory] | User view history with timestamp.