---
title: "The Storefront pipelines"
slug: "the-storefront-pipelines"
abstract: "Overview of the pipelines used in SXA Storefront. Pipelines define a sequence of processors that implement a function and these ones are specific to SXA Storefront."
---
# The Storefront pipelines

Pipelines define a sequence of processors that implement a function. In other words, a pipeline is a series of steps that implement an operation. Each step has its own operations and the sequence of the steps matters as the processors are run in order. Custom processors can be injected and existing processors can easily be replaced to alter the default functionality and behavior.

Storefront interacts with [SXA pipelines](https://doc.sitecore.com/xp/en/developers/sxa/102/sitecore-experience-accelerator/the-sxa-pipelines.html) as well as [Connect pipelines](https://doc.sitecore.com/xp/en/developers/102/sitecore-experience-commerce/the-connect-pipelines.html "The Connect pipelines"). The ones described in the following table are specific to SXA Storefront.

| Pipeline | Description |
| --- | --- |
| `commerce.getRecommendedProducts` | Used to evaluate the [recommended products](https://doc.sitecore.com/xp/en/developers/102/sitecore-experience-commerce/customizing-the-algorithm-for-recommended-products.html) based on the arguments passed to it. The pipeline is executed in two different contexts when rendering recommendations:<br><br><ul><li>when sending email messages in a marketing automation campaign</li><li>on the live storefront site</li></ul><br><br>By default, this pipeline contains four processors:<br><br><ul><li>`FromOrder` - uses the *OrderId* from the Email Experience Manager (EXM) campaign query string (in other words, from the campaign custom values) to retrieve the products list from the [recommended products provider](https://doc.sitecore.com/xp/en/developers/102/sitecore-experience-commerce/customizing-the-algorithm-for-recommended-products.html).</li><li>`FromQuery` - goes to the **Products query** field from the rendering data source item and uses the search manager to run a query against the index to retrieve a list of items.</li><li>`FromLastOrder` - retrieves the contact’s last order ID and passes it to the [recommended products provider](https://doc.sitecore.com/xp/en/developers/102/sitecore-experience-commerce/customizing-the-algorithm-for-recommended-products.html).</li><li>`FromSearchScope` - retrieves the fallback scope ID and executes the query defined for the scope to determine the products to recommend. For email campaigns, the fallback is the query in the email data source.</li></ul><br><br>The pipeline argument object type is `GetRecommendedProductArgs`. Available properties are:<br><br><ul><li>`IsRecommendedProductsReady`</li><li>`MaxNumberOfRecommendedProducts`</li><li>`ProductsQuery`</li><li>`RecommendedProductsIdList`</li><li>`RelationshipFieldName`</li><li>`Success`</li></ul> |
| `newCxaSiteCreated` | Used when you create a new site in the Content Editor. By default, it contains one processor:<br><br><ul><li>`QueueDomainCreatedEvent` - propagates the security domain created event to all other roles and creates the domain.</li></ul><br><br>The pipeline argument object type is `NewCxaSiteCreatedArgs`. Available properties are:<br><br><ul><li>`DomainName`</li><li>`LocallyManaged`</li></ul><br><br>By default, it contains one processor:<br><br><ul><li>`QueueDomainCreatedEvent` - used to propagate the security domain created event `DomainCreatedEvent` to all other roles and to make sure that the security domain is created on all available roles. There is an event handler `DomainCreatedEventHandler` that is listening to this event and that reacts on all the roles.</li></ul> |