getConfig( )
Retrieves the configuration of your additional fees extension.
Description
Set your additional fees 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 extension, so set getConfig()
to return an empty object.
Where to find getConfig()
When you add the Additional Fees custom extension,
a folder is automatically added to your site. Use the <my-extension-name>-config.js
file in the folder to set the default configuration for your
implementation of the custom extension.
For more information on setting your configuration, see Tutorial: Additional Fees Custom Extension.
Syntax
function getConfig(): Promise<AdditionalFeesConfigResponse>
getConfig Parameters
This function does not take any parameters.
Returns
Fulfilled - The configuration settings.
Return Type:
Was this helpful?
Example of a configuration file
1// Place this code in the <my-extension-name>-config.js file2// in the 'ecom-additional-fees' folder of the3// Custom Extensions section on your site.45export function getConfig() {6 return {};7};