SXA Storefront rendering communication
Commerce renderings make calls to the Commerce Foundation layer, which includes the following base functionalities:
-
The
BaseProductRepositoryrepository - includes methods for calling the Commerce Engine to retrieve price and stock information. -
The
ProductEntityclass - represents a product. -
The
ProductSummaryViewModelmodel - contains all relevant product information (price and stock information and variants). It is used with various SXA renderings on the Product Detail page and Category pages. -
The
ProductEntityHelper- populates and returns a ProductEntity or a list of ProductEntities. -
The
OrderBasedRecommendedProductsProviderprovider - acts as the default provider for retrieving the list of product IDs to use in product recommendations. -
The
<commerce.getRecommendedProducts>pipeline - includes three processors for handling product recommendations: FromOrder, FromQuery, and FromLastOrder.
How renderings communicate depends on how the rendering has been implemented.