getConfig( )

Retrieves the configuration of your validations plugin.

Set your validations 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.

By default, the Validations service plugin only validates a site visitor's checkout. To also validate a site visitor's cart, set validateInCart to true.

Where to find getConfig()

When you add the Validations service plugin, 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: Validations Service Plugin.

Method Declaration
This method does not take any parameters
Return Type:Promise<ValidationsConfigResponse>
Was this helpful?