Skip to content

Instantly share code, notes, and snippets.

@Mozu-CS
Created March 2, 2016 15:15
Show Gist options
  • Select an option

  • Save Mozu-CS/1cf2f309cf31b5b66a25 to your computer and use it in GitHub Desktop.

Select an option

Save Mozu-CS/1cf2f309cf31b5b66a25 to your computer and use it in GitHub Desktop.
An example using configuration variables within Arc.js
{
"actions": [
{
"actionId": "http.commerce.catalog.storefront.shipping.requestRates.after",
"contexts": [
{
"customFunctions": [
{
"applicationKey": "DevTrain.AMSXBG_Arc.1.0.0.Release",
"functionId": "http.commerce.catalog.storefront.shipping.requestRates.after",
"enabled": true,
"configuration": {
"shippingPercentage": 0.75,
"increaseRate": false,
"roundDown": false
}
}
]
}
]
}
],
"configurations": [
{
"configuration": {
"shippingPercentage": 0.5
}
}
],
"defaultLogLevel": "error"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment