Created
March 2, 2016 15:15
-
-
Save Mozu-CS/1cf2f309cf31b5b66a25 to your computer and use it in GitHub Desktop.
An example using configuration variables within Arc.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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