-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
547 lines (538 loc) · 31.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="dist/settingizer.css" />
<link rel="stylesheet" type="text/css" media="screen" href="dist/themes/dark-theme.css" />
<link rel="stylesheet" type="text/css" media="screen" href="dist/themes/shopify-theme.css" />
<style>
body {
background: rgb(30,30,30);
background: #e6ecf0;
margin: 30px;
}
.settingizer {
max-width: 786px;
padding: 30px;
}
</style>
</head>
<body>
<div class="settingizer shopify-theme"></div>
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="jquery.serialize-object.min.js"></script>
<script src="dist/settingizer.js"></script>
<script>
var bcpo_data = {
"product_id": "11742160396",
"type0": {
"Buttons": "buttons"
},
"unique": [
"_dym8pm30z",
"_98m00omod"
],
"type1": {
"Images": "images"
},
"productwide_preorders": "off",
"jumbo_colors": "off",
"jumbo_images": "off",
"images1": [
{
"key": "slate",
"value": "https://cdn.shopify.com/s/files/1/1654/7207/t/4/assets/bcpo-11742160396-2001_slate_2e44add9-5cfa-4f93-82e0-cb7cf6602947_grande.jpeg?185881109335122852"
},
{
"key": "camel",
"value": "https://cdn.shopify.com/s/files/1/1654/7207/t/4/assets/bcpo-camel.jpeg?12048791361874171228"
},
{
"key": "cranberry",
"value": "https://cdn.shopify.com/s/files/1/1654/7207/t/4/assets/bcpo-11742160396-2001_cranberry_055ccfbf-712f-4482-9300-8ba24b5ba9e1_grande.jpeg?2770342187789440480"
},
{
"key": "eggplant",
"value": "https://cdn.shopify.com/s/files/1/1654/7207/t/4/assets/bcpo-eggplant.jpeg?15835577604743792155"
},
{
"key": "black",
"value": "https://cdn.shopify.com/s/files/1/1654/7207/t/4/assets/bcpo-black.jpeg?16539932928408139925"
}
],
"virtual_options": [
{
"title": "",
"type": "instructions",
"unique": "_e3ob5gp37",
"conditional_option": "",
"conditional_value": "",
"values": "Below are virtual options which let you have unlimited options and variants. You can choose if these are required or not, or apply conditional logic to them to appear when a customer needs them."
},
{
"title": "Color Swatches",
"type": "colors",
"required": "on",
"unique": "_bu430w78o",
"conditional_option": "",
"conditional_value": "",
"preselect_value": "",
"values": [
{
"key": "Black",
"value": "000000"
},
{
"key": "Eggplant",
"value": "49187f"
},
{
"key": "Slate",
"value": "959595"
},
{
"key": "Cranberry",
"value": "c2253b"
}
]
},
{
"title": "",
"type": "instructions",
"unique": "_snhw02iri",
"conditional_option": "",
"conditional_value": "",
"values": "The buttons below are set to multi-select. Perfect for when you need your customer to select multiple variants. You can also use multi-select with buttons, images, and checkboxes. "
},
{
"title": "Buttons",
"type": "buttons",
"unique": "_pzax0hir2",
"conditional_option": "",
"conditional_value": "",
"preselect_value": "",
"multiselect": "on",
"values": "Small, medium, large, extra large"
},
{
"title": "",
"type": "instructions",
"unique": "_3p3hmp6xv",
"conditional_option": "",
"conditional_value": "",
"values": "With text input and long text you can limit the amount of characters a customer can enter. For the one below the limit is set to 3."
},
{
"title": "Text",
"type": "text",
"required": "on",
"unique": "_wmcyee6nw",
"conditional_option": "",
"conditional_value": "",
"maxlength": "3"
},
{
"title": "",
"type": "instructions",
"unique": "_k3vvttbkh",
"conditional_option": "",
"conditional_value": "",
"values": "For this example below I set the character limit to 10."
},
{
"title": "Long Text",
"type": "textarea",
"unique": "_8j1lkym4x",
"conditional_option": "",
"conditional_value": "",
"maxlength": "10"
},
{
"title": "",
"type": "instructions",
"unique": "_s1c701um8",
"conditional_option": "",
"conditional_value": "",
"values": "Below is an example of our conditional logic. When you select \"Yes\" the conditional logic product options appear. "
},
{
"title": "Conditional Logic",
"type": "buttons",
"unique": "_flx0z5rvb",
"conditional_option": "",
"conditional_value": "",
"preselect_value": "",
"values": "Yes, No"
},
{
"title": "",
"type": "instructions",
"unique": "_08wtptvay",
"conditional_option": "_flx0z5rvb",
"conditional_value": "Yes",
"values": "The buttons below only show up when \"Yes\" is select for \"Conditional Logic\". When you select \"No\" they are hidden."
},
{
"title": "Buttons",
"type": "buttons",
"unique": "_ksgvbxj2w",
"conditional_option": "_flx0z5rvb",
"conditional_value": "Yes",
"preselect_value": "",
"values": "1, 2, 3, 4, 5"
},
{
"title": "File Upload",
"type": "file",
"unique": "_806r0avqy",
"conditional_option": "",
"conditional_value": ""
},
{
"title": "Radio Buttons",
"type": "radios",
"unique": "_qht0r9lup",
"conditional_option": "",
"conditional_value": "",
"preselect_value": "",
"values": "small, medium, large, extra large"
},
{
"title": "",
"type": "instructions",
"unique": "_o3h8d6gx3",
"conditional_option": "",
"conditional_value": "",
"values": "Checkboxes are like radio buttons but the customer can select multiple variants. "
},
{
"title": "Checkboxes",
"type": "checkboxes",
"unique": "_af97zzwf8",
"conditional_option": "",
"conditional_value": "",
"values": "small, medium, large, extra large"
},
{
"title": "",
"type": "instructions",
"unique": "_dlvpjh8ck",
"conditional_option": "",
"conditional_value": "",
"values": "When you click add to cart it will show you what product options are required before you can add your product to the cart. "
}
]
};
var sizeChartsRelentless = {"charts":[{"id":"d8dfd1ca-1e21-46c6-88a5-72680e1bfcbb","products":[],"collections":[{"id":445221511,"title":"Frontpage"},{"id":79991701552,"title":"Products", "added":"goat"}],"chart":{"title":"balls","descriptionTop":"<p>.,m.,mmm,</p>\n<p> </p>\n<p>,m.,m<img src=\"https://cdn.shopify.com/s/files/1/0797/6895/t/20/assets/scr-d8dfd1ca-1e21-46c6-88a5-72680e1bfcbb-AUSTINACTIVE_FINAL_-02copy.png?15795550668089307553\" alt=\"\" width=\"3001\" height=\"664\" /></p>","descriptionBottom":"<p><img src=\"https://cdn.shopify.com/s/files/1/0797/6895/t/20/assets/scr-d8dfd1ca-1e21-46c6-88a5-72680e1bfcbb-appstore.png?12598548905562463663\" alt=\"\" width=\"300\" height=\"100\" /></p>","values":[["",""],["","sdfsdf"]],"buttonPlacement":"above-atc"}},{"id":"06ad447f-8639-47cb-b24c-7d1cebc7668b","products":[],"collections":[],"chart":{"title":"","descriptionTop":"<p><img style=\"float: right;\" src=\"https://cdn.shopify.com/s/files/1/0797/6895/t/20/assets/scr-06ad447f-8639-47cb-b24c-7d1cebc7668b-appstore.png?8574385599155832589\" alt=\"\" width=\"300\" height=\"100\" /></p>","descriptionBottom":"","values":[["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""]],"buttonPlacement":"above-atc"}},{"id":"e47eeaca-5501-4401-9b4f-c9a5903c6dda","products":[],"collections":[],"chart":{"title":"","descriptionTop":"<p><img src=\"https://cdn.shopify.com/s/files/1/0797/6895/t/20/assets/scr-e47eeaca-5501-4401-9b4f-c9a5903c6dda-BCP_multipleselection.png?5405499835884832029\" alt=\"\" width=\"1653\" height=\"930\" /></p>","descriptionBottom":"","values":[["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""]],"buttonPlacement":"above-atc"}}],"shadow":{"0":{},"length":1},"modal":{"0":{},"length":1}};
var bcpo_settings = {
"fallback": "default",
"auto_select": "on",
"border_style": "square",
"tooltips": "show",
"sold_out_style": "transparent",
"jumbo_colors": "on",
"jumbo_images": "on",
"circle_swatches": "on",
"storewide_preorders": "off",
"money_format": "$",
"global_auto_image_options": "",
"global_color_options": "Color",
"global_colors": [
{
"key": "Green",
"value": "12625e"
},
{
"key": "Purple",
"value": "351b8e"
},
{
"key": "Blue",
"value": "2226b2"
},
{
"key": "Maroon",
"value": "ac216e"
},
{
"key": "Blue2",
"value": "174b79"
},
{
"key": "S",
"value": "dda62a"
},
{
"key": "M",
"value": "ec2ff8"
},
{
"key": "lkj",
"value": "c33725"
},
{
"key": "China",
"value": "4c2deb"
},
{
"key": "Australia",
"value": "dc2ad6"
},
{
"key": "United States",
"value": "3af02e"
}
],
"rules": [],
"inventory_style": "amazon"
};
var array_test = ['hey', 'hey', {nowwhat: 5, ok: ['heu']}];
var nested_objects = {ok: {ok2: {ok3: {ok4: 5}}}};
var array_property = {cows: ['hey', 'hey', 'hey'], chickens: 'WHOA!'};
var product = {"product":{"id":10954089415,"title":"Adjustable Leisure Beanbag Chair","handle":"adjustable-leisure-beanbag-chair","description":"<p><span><strong>Specific Use:</strong> Living Room Sofa</span><br><span><strong>General Use:</strong> Home Furniture</span><br><span><strong>Type:</strong> Living Room Furniture</span><br><span><strong>Place Of Origin:</strong> China</span><br><span><strong>Combination:</strong> L-shaped</span><br><span><strong>Pattern:</strong> Printed</span><br><span><strong>Model Number:</strong> JF0046</span><br><span><strong>Size:</strong> 10*50cm*13cm</span><br><span><strong>With Storage:</strong> No</span><br><span><strong>Style:</strong> Europe And America</span><br><span><strong>Style:</strong> Corner Sofa</span><br><span><strong>Appearance:</strong> Modern</span><br><span><strong>is_customized:</strong> Yes</span><br><span><strong>Type:</strong> One Seat</span><br><span><strong>Material:</strong> Cloth,foam padding, metal frame</span><br><span><strong>Filling:</strong> Foam</span><br><span><strong>Fabric:</strong> Flannel, foam padding, metal frame</span><br><span><strong>Fabric:</strong> Cloth</span><br><span><strong>Applicable:</strong> Adult</span><br><span><strong>Finishes Fabric Technics:</strong> Sewing</span><br><span><strong>Combination:</strong> Single Seat</span><br><span><strong>For The Number:</strong> One Person</span><br><span><strong>Inflatable:</strong> No</span><br><span><strong>Structural Processes:</strong> Handmade</span><br><span><strong>Classification By Crowd:</strong> Unisex</span><br><span><strong>With Storage:</strong> No<br></span><strong></strong><span> </span></p>","published_at":"2017-07-29T17:22:30-12:00","created_at":"2017-07-29T17:22:30-12:00","vendor":"Modern Home Office","type":"","tags":[],"price":0,"price_min":0,"price_max":10350,"available":true,"price_varies":true,"compare_at_price":7800,"compare_at_price_min":7800,"compare_at_price_max":887800,"compare_at_price_varies":true,"variants":[{"id":49652460679,"title":"Leopard / 10 / yes","option1":"Leopard","option2":"10","option3":"yes","sku":"2422001-leopard-s","requires_shipping":true,"taxable":false,"featured_image":{"id":28998697479,"product_id":10954089415,"position":2,"created_at":"2017-08-04T07:49:44-12:00","updated_at":"2018-05-26T01:23:02-12:00","alt":"Adjustable Leisure Beanbag Chair - Modern Home Office","width":550,"height":550,"src":"https://cdn.shopify.com/s/files/1/0797/6895/products/product-image-243245342_6dab64ce-b1a9-4935-87c6-d639b2158bc7.jpg?v=1527340982","variant_ids":[49652460679]},"available":true,"name":"Adjustable Leisure Beanbag Chair - Leopard / 10 / yes","public_title":"Leopard / 10 / yes","options":["Leopard","10","yes"],"price":100,"weight":0,"compare_at_price":87800,"inventory_quantity":991,"inventory_management":"shopify","inventory_policy":"deny","barcode":"8769876"},{"id":49652460743,"title":"Leopard / 5 / yes","option1":"Leopard","option2":"5","option3":"yes","sku":"2422001-leopard-l","requires_shipping":true,"taxable":false,"featured_image":{"id":28998706247,"product_id":10954089415,"position":1,"created_at":"2017-08-04T07:50:14-12:00","updated_at":"2018-05-26T01:23:02-12:00","alt":"Adjustable Leisure Beanbag Chair - Modern Home Office","width":550,"height":550,"src":"https://cdn.shopify.com/s/files/1/0797/6895/products/product-image-117739222_482607f4-658e-4380-9fbf-2ea933a48a10.jpg?v=1527340982","variant_ids":[49652460743]},"available":true,"name":"Adjustable Leisure Beanbag Chair - Leopard / 5 / yes","public_title":"Leopard / 5 / yes","options":["Leopard","5","yes"],"price":10350,"weight":0,"compare_at_price":10350,"inventory_quantity":993,"inventory_management":"shopify","inventory_policy":"deny","barcode":"123123"},{"id":49652460167,"title":"British flag S / 5 / yes","option1":"British flag S","option2":"5","option3":"yes","sku":"2422001-british-flag-s","requires_shipping":true,"taxable":false,"featured_image":{"id":28998703175,"product_id":10954089415,"position":6,"created_at":"2017-08-04T07:50:07-12:00","updated_at":"2018-05-26T01:23:02-12:00","alt":"Adjustable Leisure Beanbag Chair - Modern Home Office","width":550,"height":550,"src":"https://cdn.shopify.com/s/files/1/0797/6895/products/product-image-243245346_7eeede34-4839-4624-b999-be6f603ffc19.jpg?v=1527340982","variant_ids":[49652460167,49652460231]},"available":true,"name":"Adjustable Leisure Beanbag Chair - British flag S / 5 / yes","public_title":"British flag S / 5 / yes","options":["British flag S","5","yes"],"price":7800,"weight":0,"compare_at_price":887800,"inventory_quantity":999,"inventory_management":"shopify","inventory_policy":"deny","barcode":""},{"id":49652460231,"title":"British flag L / 5 / yes","option1":"British flag L","option2":"5","option3":"yes","sku":"2422001-british-flag-l","requires_shipping":true,"taxable":false,"featured_image":{"id":28998703175,"product_id":10954089415,"position":6,"created_at":"2017-08-04T07:50:07-12:00","updated_at":"2018-05-26T01:23:02-12:00","alt":"Adjustable Leisure Beanbag Chair - Modern Home Office","width":550,"height":550,"src":"https://cdn.shopify.com/s/files/1/0797/6895/products/product-image-243245346_7eeede34-4839-4624-b999-be6f603ffc19.jpg?v=1527340982","variant_ids":[49652460167,49652460231]},"available":true,"name":"Adjustable Leisure Beanbag Chair - British flag L / 5 / yes","public_title":"British flag L / 5 / yes","options":["British flag L","5","yes"],"price":10350,"weight":0,"compare_at_price":10350,"inventory_quantity":997,"inventory_management":"shopify","inventory_policy":"deny","barcode":null},{"id":49652460295,"title":"Zebra stripe S / 5 / yes","option1":"Zebra stripe S","option2":"5","option3":"yes","sku":"2422001-zebra-stripe-s","requires_shipping":true,"taxable":false,"featured_image":{"id":28998700615,"product_id":10954089415,"position":4,"created_at":"2017-08-04T07:49:55-12:00","updated_at":"2018-05-26T01:23:02-12:00","alt":"Adjustable Leisure Beanbag Chair - Modern Home Office","width":550,"height":550,"src":"https://cdn.shopify.com/s/files/1/0797/6895/products/product-image-243245345_4cc98346-ce1c-4adb-b79f-d850344c43a8.jpg?v=1527340982","variant_ids":[49652460295,49652460359]},"available":false,"name":"Adjustable Leisure Beanbag Chair - Zebra stripe S / 5 / yes","public_title":"Zebra stripe S / 5 / yes","options":["Zebra stripe S","5","yes"],"price":7800,"weight":0,"compare_at_price":7800,"inventory_quantity":0,"inventory_management":"shopify","inventory_policy":"deny","barcode":null},{"id":49652460359,"title":"Zebra stripe L / 5 / yes","option1":"Zebra stripe L","option2":"5","option3":"yes","sku":"2422001-zebra-stripe-l","requires_shipping":true,"taxable":false,"featured_image":{"id":28998700615,"product_id":10954089415,"position":4,"created_at":"2017-08-04T07:49:55-12:00","updated_at":"2018-05-26T01:23:02-12:00","alt":"Adjustable Leisure Beanbag Chair - Modern Home Office","width":550,"height":550,"src":"https://cdn.shopify.com/s/files/1/0797/6895/products/product-image-243245345_4cc98346-ce1c-4adb-b79f-d850344c43a8.jpg?v=1527340982","variant_ids":[49652460295,49652460359]},"available":false,"name":"Adjustable Leisure Beanbag Chair - Zebra stripe L / 5 / yes","public_title":"Zebra stripe L / 5 / yes","options":["Zebra stripe L","5","yes"],"price":10350,"weight":0,"compare_at_price":10350,"inventory_quantity":0,"inventory_management":"shopify","inventory_policy":"deny","barcode":null},{"id":49652460423,"title":"Rose S / 5 / yes","option1":"Rose S","option2":"5","option3":"yes","sku":"2422001-rose-s","requires_shipping":true,"taxable":false,"featured_image":{"id":28998701511,"product_id":10954089415,"position":5,"created_at":"2017-08-04T07:50:02-12:00","updated_at":"2018-05-26T01:23:02-12:00","alt":"Adjustable Leisure Beanbag Chair - Modern Home Office","width":550,"height":550,"src":"https://cdn.shopify.com/s/files/1/0797/6895/products/product-image-243245344_326ae0ee-9779-4e6e-965f-525a86981652.jpg?v=1527340982","variant_ids":[49652460423,49652460487]},"available":true,"name":"Adjustable Leisure Beanbag Chair - Rose S / 5 / yes","public_title":"Rose S / 5 / yes","options":["Rose S","5","yes"],"price":7800,"weight":0,"compare_at_price":7800,"inventory_quantity":999,"inventory_management":"shopify","inventory_policy":"deny","barcode":null},{"id":49652460487,"title":"Outofstock allowed / 5 / yes","option1":"Outofstock allowed","option2":"5","option3":"yes","sku":"2422001-rose-l","requires_shipping":true,"taxable":false,"featured_image":{"id":28998701511,"product_id":10954089415,"position":5,"created_at":"2017-08-04T07:50:02-12:00","updated_at":"2018-05-26T01:23:02-12:00","alt":"Adjustable Leisure Beanbag Chair - Modern Home Office","width":550,"height":550,"src":"https://cdn.shopify.com/s/files/1/0797/6895/products/product-image-243245344_326ae0ee-9779-4e6e-965f-525a86981652.jpg?v=1527340982","variant_ids":[49652460423,49652460487]},"available":true,"name":"Adjustable Leisure Beanbag Chair - Outofstock allowed / 5 / yes","public_title":"Outofstock allowed / 5 / yes","options":["Outofstock allowed","5","yes"],"price":10350,"weight":0,"compare_at_price":10350,"inventory_quantity":0,"inventory_management":"shopify","inventory_policy":"continue","barcode":""},{"id":49652460551,"title":"Blue stripe S / 10 / yes","option1":"Blue stripe S","option2":"10","option3":"yes","sku":"2422001-blue-stripe-s","requires_shipping":true,"taxable":false,"featured_image":{"id":28998699207,"product_id":10954089415,"position":3,"created_at":"2017-08-04T07:49:50-12:00","updated_at":"2018-05-26T01:23:02-12:00","alt":"Adjustable Leisure Beanbag Chair - Modern Home Office","width":550,"height":550,"src":"https://cdn.shopify.com/s/files/1/0797/6895/products/product-image-243245343_6fb7250f-db34-49fb-9578-855b834ba2ae.jpg?v=1527340982","variant_ids":[49652460551,49652460615]},"available":true,"name":"Adjustable Leisure Beanbag Chair - Blue stripe S / 10 / yes","public_title":"Blue stripe S / 10 / yes","options":["Blue stripe S","10","yes"],"price":7800,"weight":0,"compare_at_price":7800,"inventory_quantity":999,"inventory_management":"shopify","inventory_policy":"deny","barcode":null},{"id":49652460615,"title":"Blue stripe L / 5 / yes","option1":"Blue stripe L","option2":"5","option3":"yes","sku":"2422001-blue-stripe-l","requires_shipping":true,"taxable":false,"featured_image":{"id":28998699207,"product_id":10954089415,"position":3,"created_at":"2017-08-04T07:49:50-12:00","updated_at":"2018-05-26T01:23:02-12:00","alt":"Adjustable Leisure Beanbag Chair - Modern Home Office","width":550,"height":550,"src":"https://cdn.shopify.com/s/files/1/0797/6895/products/product-image-243245343_6fb7250f-db34-49fb-9578-855b834ba2ae.jpg?v=1527340982","variant_ids":[49652460551,49652460615]},"available":true,"name":"Adjustable Leisure Beanbag Chair - Blue stripe L / 5 / yes","public_title":"Blue stripe L / 5 / yes","options":["Blue stripe L","5","yes"],"price":10350,"weight":0,"compare_at_price":10350,"inventory_quantity":997,"inventory_management":"shopify","inventory_policy":"deny","barcode":null},{"id":53466939271,"title":"Green / 5 / yes","option1":"Green","option2":"5","option3":"yes","sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Adjustable Leisure Beanbag Chair - Green / 5 / yes","public_title":"Green / 5 / yes","options":["Green","5","yes"],"price":7800,"weight":0,"compare_at_price":7800,"inventory_quantity":1,"inventory_management":"shopify","inventory_policy":"deny","barcode":""},{"id":8100361994288,"title":"Leopard / 10 / no","option1":"Leopard","option2":"10","option3":"no","sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Adjustable Leisure Beanbag Chair - Leopard / 10 / no","public_title":"Leopard / 10 / no","options":["Leopard","10","no"],"price":0,"weight":0,"compare_at_price":87800,"inventory_quantity":1,"inventory_management":"shopify","inventory_policy":"deny","barcode":""}],"images":["//cdn.shopify.com/s/files/1/0797/6895/products/product-image-117739222_482607f4-658e-4380-9fbf-2ea933a48a10.jpg?v=1527340982","//cdn.shopify.com/s/files/1/0797/6895/products/product-image-243245342_6dab64ce-b1a9-4935-87c6-d639b2158bc7.jpg?v=1527340982","//cdn.shopify.com/s/files/1/0797/6895/products/product-image-243245343_6fb7250f-db34-49fb-9578-855b834ba2ae.jpg?v=1527340982","//cdn.shopify.com/s/files/1/0797/6895/products/product-image-243245345_4cc98346-ce1c-4adb-b79f-d850344c43a8.jpg?v=1527340982","//cdn.shopify.com/s/files/1/0797/6895/products/product-image-243245344_326ae0ee-9779-4e6e-965f-525a86981652.jpg?v=1527340982","//cdn.shopify.com/s/files/1/0797/6895/products/product-image-243245346_7eeede34-4839-4624-b999-be6f603ffc19.jpg?v=1527340982","//cdn.shopify.com/s/files/1/0797/6895/products/product-image-117739232_155c0564-6a13-4a74-b6da-33d0ced875ff.jpg?v=1527340982","//cdn.shopify.com/s/files/1/0797/6895/products/product-image-117739230_a555d080-3f02-4e0a-8ca7-f5be79bc935a.jpg?v=1527340982","//cdn.shopify.com/s/files/1/0797/6895/products/product-image-117739227_6f14adf6-c66a-449c-9c00-60a91020918b.jpg?v=1527340982","//cdn.shopify.com/s/files/1/0797/6895/products/product-image-117739225_53028604-d8d0-473f-ad15-f3491d72f85b.jpg?v=1527340982","//cdn.shopify.com/s/files/1/0797/6895/products/product-image-117739231_aecd0a1c-c2a7-4f3e-805a-73cb8622e96c.jpg?v=1527340982","//cdn.shopify.com/s/files/1/0797/6895/products/product-image-117739228_41ddd5bc-93ce-47b2-bb0c-36c7413ad4ff.jpg?v=1527340982"],"featured_image":"//cdn.shopify.com/s/files/1/0797/6895/products/product-image-117739222_482607f4-658e-4380-9fbf-2ea933a48a10.jpg?v=1527340982","options":["Color","Size","Material"],"content":"<p><span><strong>Specific Use:</strong> Living Room Sofa</span><br><span><strong>General Use:</strong> Home Furniture</span><br><span><strong>Type:</strong> Living Room Furniture</span><br><span><strong>Place Of Origin:</strong> China</span><br><span><strong>Combination:</strong> L-shaped</span><br><span><strong>Pattern:</strong> Printed</span><br><span><strong>Model Number:</strong> JF0046</span><br><span><strong>Size:</strong> 10*50cm*13cm</span><br><span><strong>With Storage:</strong> No</span><br><span><strong>Style:</strong> Europe And America</span><br><span><strong>Style:</strong> Corner Sofa</span><br><span><strong>Appearance:</strong> Modern</span><br><span><strong>is_customized:</strong> Yes</span><br><span><strong>Type:</strong> One Seat</span><br><span><strong>Material:</strong> Cloth,foam padding, metal frame</span><br><span><strong>Filling:</strong> Foam</span><br><span><strong>Fabric:</strong> Flannel, foam padding, metal frame</span><br><span><strong>Fabric:</strong> Cloth</span><br><span><strong>Applicable:</strong> Adult</span><br><span><strong>Finishes Fabric Technics:</strong> Sewing</span><br><span><strong>Combination:</strong> Single Seat</span><br><span><strong>For The Number:</strong> One Person</span><br><span><strong>Inflatable:</strong> No</span><br><span><strong>Structural Processes:</strong> Handmade</span><br><span><strong>Classification By Crowd:</strong> Unisex</span><br><span><strong>With Storage:</strong> No<br></span><strong></strong><span> </span></p>"}};
var sizeChartData = [
{
"id": "d8dfd1ca-1e21-46c6-88a5-72680e1bfcbb",
"products": [],
"collections": [
{
"id": 445221511,
"title": "Frontpage"
},
{
"id": 79991701552,
"title": "Products"
}
],
"chart": {
"title": "balls",
"descriptionTop": "<p>.,m.,mmm,</p>\n<p> </p>\n<p>,m.,m<img src=\"https://cdn.shopify.com/s/files/1/0797/6895/t/20/assets/scr-d8dfd1ca-1e21-46c6-88a5-72680e1bfcbb-AUSTINACTIVE_FINAL_-02copy.png?15795550668089307553\" alt=\"\" width=\"3001\" height=\"664\" /></p>",
"descriptionBottom": "<p><img src=\"https://cdn.shopify.com/s/files/1/0797/6895/t/20/assets/scr-d8dfd1ca-1e21-46c6-88a5-72680e1bfcbb-appstore.png?12598548905562463663\" alt=\"\" width=\"300\" height=\"100\" /></p>",
"values": [
[
"",
""
],
[
"",
"sdfsdf"
]
],
"buttonPlacement": "above-atc"
}
},
{
"id": "06ad447f-8639-47cb-b24c-7d1cebc7668b",
"products": [],
"collections": [],
"chart": {
"title": "",
"descriptionTop": "<p><img style=\"float: right;\" src=\"https://cdn.shopify.com/s/files/1/0797/6895/t/20/assets/scr-06ad447f-8639-47cb-b24c-7d1cebc7668b-appstore.png?8574385599155832589\" alt=\"\" width=\"300\" height=\"100\" /></p>",
"descriptionBottom": "",
"values": [
[
"",
"",
"",
"",
"",
"",
""
],
[
"",
"",
"",
"",
"",
"",
""
],
[
"",
"",
"",
"",
"",
"",
""
],
[
"",
"",
"",
"",
"",
"",
""
],
[
"",
"",
"",
"",
"",
"",
""
],
[
"",
"",
"",
"",
"",
"",
""
],
[
"",
"",
"",
"",
"",
"",
""
]
],
"buttonPlacement": "above-atc"
}
},
{
"id": "e47eeaca-5501-4401-9b4f-c9a5903c6dda",
"products": [],
"collections": [],
"chart": {
"title": "",
"descriptionTop": "<p><img src=\"https://cdn.shopify.com/s/files/1/0797/6895/t/20/assets/scr-e47eeaca-5501-4401-9b4f-c9a5903c6dda-BCP_multipleselection.png?5405499835884832029\" alt=\"\" width=\"1653\" height=\"930\" /></p>",
"descriptionBottom": "",
"values": [
[
"",
"",
"",
"",
"",
"",
""
],
[
"",
"",
"",
"",
"",
"",
""
],
[
"",
"",
"",
"",
"",
"",
""
],
[
"",
"",
"",
"",
"",
"",
""
],
[
"",
"",
"",
"",
"",
"",
""
],
[
"",
"",
"",
"",
"",
"",
""
],
[
"",
"",
"",
"",
"",
"",
""
]
],
"buttonPlacement": "above-atc"
}
}
];
var oldSizeChartData = [{"id":"d8dfd1ca-1e21-46c6-88a5-72680e1bfcbb","title":"balls","descriptionTop":"<p>.,m.,mmm,</p>\n<p> </p>\n<p>,m.,m<img src=\"https://cdn.shopify.com/s/files/1/0797/6895/t/20/assets/scr-d8dfd1ca-1e21-46c6-88a5-72680e1bfcbb-AUSTINACTIVE_FINAL_-02copy.png?15795550668089307553\" alt=\"\" width=\"3001\" height=\"664\" /></p>","values":[["1","2","3"],["okbro","","sdfsdf"]],"descriptionBottom":"<p><img src=\"https://cdn.shopify.com/s/files/1/0797/6895/t/20/assets/scr-d8dfd1ca-1e21-46c6-88a5-72680e1bfcbb-appstore.png?12598548905562463663\" alt=\"\" width=\"300\" height=\"100\" /></p>","buttonPlacement":"above-atc","conditions":[/*{"type":"collection","id":445221511,"title":"Frontpage"},{"type":"collection","id":79991701552,"title":"Products"}*/]},{"id":"06ad447f-8639-47cb-b24c-7d1cebc7668b","title":"0","descriptionTop":"<p><img style=\"float: right;\" src=\"https://cdn.shopify.com/s/files/1/0797/6895/t/20/assets/scr-06ad447f-8639-47cb-b24c-7d1cebc7668b-appstore.png?8574385599155832589\" alt=\"\" width=\"300\" height=\"100\" /></p>","values":[["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""]],"descriptionBottom":"","buttonPlacement":"above-atc","conditions":[]},{"id":"e47eeaca-5501-4401-9b4f-c9a5903c6dda","title":"0","descriptionTop":"<p><img src=\"https://cdn.shopify.com/s/files/1/0797/6895/t/20/assets/scr-e47eeaca-5501-4401-9b4f-c9a5903c6dda-BCP_multipleselection.png?5405499835884832029\" alt=\"\" width=\"1653\" height=\"930\" /></p>","values":[["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""],["","","","","","",""]],"descriptionBottom":"","buttonPlacement":"above-atc","conditionsOperator":"any-conditions","conditions":[]}];
var empty = {"buttonPlacement":"above-add-to-cart","buttonIcon":"none","buttonText":"Doin itd5","currentPlan":"Premium Plan"};
var newSizeChartData = {"charts":[{"id":"0","title":"","descriptionTop":"",values:"","descriptionBottom":"","buttonPlacement":"","conditionsOperator":"any","conditions":[]},{"id":"1","title":"","descriptionTop":"","values":"","descriptionBottom":"","buttonPlacement":"","conditionsOperator":"any","conditions":[]},{"id":"2","title":"","descriptionTop":"","values":"","descriptionBottom":"","buttonPlacement":"","conditionsOperator":"any","conditions":[]}],"buttonPlacement":"above-add-to-cart","buttonIcon":"none","buttonText":"Doin itd5","currentPlan":"Premium Plan"};
var data = newSizeChartData;
// sizeChartData asked about undefined??
create_settings(data, {
"charts": {
sc_add: true,
sc_label: false,
"0": {
"id": {
"sc_show": false
},
"title": {},
"descriptionTop": {sc_type: 'textarea', sc_description: 'this will show up above the size chart'},
"values": {
sc_label: 'Size Chart',
"sc_type": 'grid',
"sc_add": true,
},
"descriptionBottom": {sc_type: 'textarea'},
"conditionsOperator": {sc_label: 'Associated Products', sc_type: 'radios', sc_options: ['all-products', 'products-matching-any-condition-below']},
"addProducts": {sc_type: 'button', sc_label: 'Conditions'},
"addCollections": {sc_type: 'button', sc_label: false},
"conditions": {
"0": {
"id": {sc_show: false},
"type": {sc_readonly: true/*, sc_type: 'select', sc_options: ['collection', 'product', 'product_type', 'tag', 'vendor', 'all']*/},
"operator": {sc_show: false, sc_type: 'select', sc_options: ['is-equal-to', 'is-not-equal-to']},
"title": {sc_readonly: true}
},
"sc_add": true,
sc_description: 'here\'s whate you do',
sc_order: false
},
"buttonPlacement": {sc_type: 'select', sc_options: ['use-global', 'above-add-to-cart', 'below-add-to-cart']},
}
},
"buttonPlacement": {"sc_show": false},
"buttonIcon": {
sc_type: 'image-swatches', sc_options: [
{key: 'ruler', value: 'https://proxy.shopifycdn.com/ee27112d56c1e68f040607dd7053df83520f23520d6ebcba420c9eff7d50aa6f/www.gravatar.com/avatar/267599d467ef5bc61ba32a5b8452b805.jpg?s=128&d=404'},
{key: 'tape', value: 'https://proxy.shopifycdn.com/ee27112d56c1e68f040607dd7053df83520f23520d6ebcba420c9eff7d50aa6f/www.gravatar.com/avatar/267599d467ef5bc61ba32a5b8452b805.jpg?s=128&d=404'},
]
},
"buttonText": {"sc_show": false},
"currentPlan": {"sc_show": false},
sc_action: '/save',
sc_method: 'post',
});
console.log('equivalence test');
console.log(data);
console.log($('.settingizer form').serializeObject());
</script>
</body>
</html>