> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: getConfig() # Method package: wixEcom # Method menu location: wixEcom --> EcomRecommendations --> getConfig # Method Link: https://dev.wix.com/docs/velo/events-service-plugins/e-commerce/service-plugins/ecom-recommendations/get-config.md # Method Description: Retrieves the configuration of your recommendations plugin. Set your recommendations configuration in the `return` of the `getConfig()` function. Wix calls this function when you publish your site. Changes to the configuration don't take effect until you publish your site. `getConfig()` returns an object containing the values used to display the recommendations algorithms in the [Related Products gallery](https://dev.wix.com/docs/develop-websites/articles/code-tutorials/wix-e-commerce-stores/adding-a-related-products-area-to-a-wix-store-product-page.md) settings in the editor. ### Where to find `getConfig()` When you [add the Recommendations service plugin](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/integrations/custom-extensions-spis/custom-app-extensions-using-spis.md), a folder is automatically added to your site. Use the `-config.js` file in the folder to set the default configuration for your implementation of the service plugin. For more information on setting your configuration, see [Recommendations Service Plugin](https://dev.wix.com/docs/develop-websites/articles/code-tutorials/wix-e-commerce-stores/tutorial-e-commerce-recommendations-service-plugin.md). # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Example of a configuration file ```javascript // Place this code in the -config.js file // in the 'ecom-recommendations-provider' folder of the // Custom Extensions section on your site. export function getConfig() { return { catalogAppIds: ["215238eb-22a5-4c36-9e7b-e7c08025e04e"], supportedAlgorithms: [ { algorithmId: "945a457f-0a57-4cf4-95a1-95991b545119", name: "In stock from the same category", description: "If selected product is out of stock, suggest in-stock products from the same category.", additionalInfo: "Works best on product page.", algorithmType: "RELATED_ITEMS" }, { algorithmId: "97f48eb2-4d42-4296-b620-13862dd0353e", name: "Cheapest in the store", description: "The cheapest products in the store", algorithmType: "GLOBAL" } ] }; } ``` ---