2023-07-31 03:34:34 -04:00
|
|
|
A nodejs tool for reading plans prices from csv files and creating JSON objects.
|
2022-11-14 08:17:33 -05:00
|
|
|
|
2023-07-31 03:34:34 -04:00
|
|
|
Run `npm install` in order to install the dependencies.
|
2022-11-14 08:17:33 -05:00
|
|
|
|
|
|
|
The scripts will put the output results into the `output` folder.
|
|
|
|
|
2023-04-26 09:31:10 -04:00
|
|
|
### Create localized and group plan pricing
|
2022-11-14 08:17:33 -05:00
|
|
|
|
2023-07-31 03:34:34 -04:00
|
|
|
_Command_ `node plans.js -f fileName -o outputdir` - generates three json files:
|
2022-11-14 08:17:33 -05:00
|
|
|
|
|
|
|
- `localizedPlanPricing.json` for `/services/web/config/settings.overrides.saas.js`
|
|
|
|
- `plans.json` for `/services/web/frontend/js/main/plans.js`
|
2023-04-26 09:31:10 -04:00
|
|
|
- `groups.json` for `/services/web/app/templates/plans/groups.json`
|
|
|
|
|
2023-07-31 03:34:34 -04:00
|
|
|
The input file can be in `.csv` or `.json` format
|
2023-04-26 09:31:10 -04:00
|
|
|
|
2023-07-31 03:34:34 -04:00
|
|
|
- `.csv` csv format
|
2023-04-26 09:31:10 -04:00
|
|
|
- `.json` json format from the `recurly_prices.js --download` script output
|