> 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 --> EcomCustomDiscountTriggers --> getConfig # Method Link: https://dev.wix.com/docs/velo/events-service-plugins/e-commerce/service-plugins/ecom-custom-discount-triggers/get-config.md # Method Description: Retrieves the configuration of your custom discount trigger plugin. Set your custom discount trigger 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. Currently no configurations are available for this plugin, so set `getConfig()` to return an empty object. ### Where to find `getConfig()` When you [add the Custom Discount Trigger plugin](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/integrations/custom-extensions-spis/custom-app-extensions-using-sp-is.md#step-1-create-a-new-extension-on-your-wix-site), 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 [Tutorial: Custom Discount Trigger Service Plugin](https://dev.wix.com/docs/develop-websites/articles/code-tutorials/wix-e-commerce-stores/tutorial-custom-discount-trigger-service-plugin.md#custom-triggers-configjs). # 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-discounts-trigger' folder of the // Custom Extensions section on your site. export function getConfig() { return {}; }; ``` ---