Last active
March 23, 2017 14:27
-
-
Save stephenbelyea/08c7bc702681d6704ff563ccc98e72ee to your computer and use it in GitHub Desktop.
Quantity type product option
This file contains 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
/* REMOVE vvv */ | |
if (!modifiers.optiongroups.map(g => { return g.id === 63732210}).includes(true)) { | |
modifiers.optiongroups.push({ | |
"choicequantityincrement": "1", | |
"description": "Sweetener", | |
"id": 63732210, | |
"mandatory": false, | |
"maxaggregatequantity": "15", | |
"maxchoicequantity": "3", | |
"maxselects": "5", | |
"metadata": null, | |
"minaggregatequantity": "0", | |
"minchoicequantity": "0", | |
"minselects": "0", | |
"options": [ | |
{ | |
"children": false, | |
"cost": 0.0000, | |
"displayid": null, | |
"fields": null, | |
"id": 324111718, | |
"isdefault": false, | |
"menuitemlabels": null, | |
"metadata": null, | |
"modifiers": null, | |
"name": "Add Brown Sugar" | |
}, | |
{ | |
"children": false, | |
"cost": 0.0000, | |
"displayid": null, | |
"fields": null, | |
"id": 324111719, | |
"isdefault": false, | |
"menuitemlabels": null, | |
"metadata": null, | |
"modifiers": null, | |
"name": "Add Equal" | |
}, | |
{ | |
"children": false, | |
"cost": 0.0000, | |
"displayid": null, | |
"fields": null, | |
"id": 324111720, | |
"isdefault": false, | |
"menuitemlabels": null, | |
"metadata": null, | |
"modifiers": null, | |
"name": "Add Honey" | |
}, | |
{ | |
"children": false, | |
"cost": 0.0000, | |
"displayid": null, | |
"fields": null, | |
"id": 324111721, | |
"isdefault": false, | |
"menuitemlabels": null, | |
"metadata": null, | |
"modifiers": null, | |
"name": "Add Splenda" | |
}, | |
{ | |
"children": false, | |
"cost": 0.0000, | |
"displayid": null, | |
"fields": null, | |
"id": 324111722, | |
"isdefault": false, | |
"menuitemlabels": null, | |
"metadata": null, | |
"modifiers": null, | |
"name": "Add White Sugar" | |
} | |
], | |
"parentchoiceid": null, | |
"supportschoicequantities": true | |
}); | |
} | |
/* REMOVE ^^^ */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment