Use a custom product repository name or location
When you set up Sitecore to integrate with an external commerce system that uses product synchronization, you must create a product repository. The default name and location for the product repository is /sitecore/content/Product Repository. If you want to use a custom product repository name or location, you must adjust the configuration.
It is best practice to store the product repository in its own folder under /sitecore/content to avoid getting it mixed up with the websites that are typically stored under /sitecore/Content/.
To use a custom product repository name or location:
-
In the
/App_Config/Include/Sitecore.Commerce.Products.configfile, edit the following attribute:<paths productRepository="/sitecore/content/Product Repository"> -
To change the configuration of the two index files for the Solr indexing engine, update the lines in the following samples:
-
In the
Sitecore.Commerce.Products.Solr.Index.Master.configfile, update the Root of theProductItemCrawler: -
In the
Sitecore.Commerce.Products.Solr.Index.Web.configfile, update the Root of theProductItemCrawler:
-
-
If you change the ID of the index for the master database from the default
commerce_products_master_index, you must also replace the ID in theProductSynchronization.ProductIndexessetting in theSitecore.Commerce.Products.Configfile.The setting contains a list of index IDs that will be paused, resumed, and rebuilt during product synchronization: