From f04e851fa6b599f9452cddc0e9918d65a740b863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerardo=20V=C3=A1zquez?= Date: Wed, 3 Jan 2024 09:59:47 +0100 Subject: [PATCH] docs(integration): add getSnippetConfig info --- .../build-search-ui/web-archetype-integration-guide.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/x-components/static-docs/build-search-ui/web-archetype-integration-guide.md b/packages/x-components/static-docs/build-search-ui/web-archetype-integration-guide.md index cde99ec466..e4c22fc8d1 100644 --- a/packages/x-components/static-docs/build-search-ui/web-archetype-integration-guide.md +++ b/packages/x-components/static-docs/build-search-ui/web-archetype-integration-guide.md @@ -314,6 +314,7 @@ functions to integrate Interface X in your website. You can access these fu | `init` | [snippet configuration params](#snippet-configuration) - _Required_. Initialization options | [Initializes Interface X on demand](#initializing-interface-x-project-on-demand). | | `search` | `query` - _Optional_. Query to open Interface X | Executes Interface X and triggers a search with the given query. | | `close` | none | Closes Interface X search layer. | +| `getSnippetConfig` | none | Returns the current initialization options. | | `setSnippetConfig` | [snippet configuration params](#snippet-configuration) - _Required_. Initialization options | Changes initialization options so that all components react to the changes, i.e. changing both search engine and language without reloading the page. | | `addProductToCart` | `productId` - _Optional._ Id of the product added to cart | Sends tracking of the `AddToCart` event to the [Empathy Tagging microservice](/develop-empathy-platform/capture-interaction-signals/tagging-api-guide.md) for the product displayed on screen. This function is called from the product detail page (PDP) when the shopper clicks on the add-to-cart button. If the `productId` is not provided, the URL detects whether the shopper found the product via a search session or not. |