Multiple options for sellingPlanGroup and sellingPlan

greg12
Excursionist
37 1 11
 
Hi all, as we know Shopify organises sellingPlans into groups
problem is that on both sellingPlanGroup   and sellingPlan levels
there is field options
which in both cases is God knows why array instead of being just a string
and i put multiple options there
however on store front Shopify renders only first option from both sellingPlanGroup and sellingPlan
and rest is ignored so i guess it is just mistake
and other elements than first from array of option will never be used
anyways this is just assumption that i make and this could ends up with problems in some edge cases
to be honest I dont see any real usecases for options as arrays
For example
I create new sellingPlanGroup by running mutation
 
```
mutation sellingPlanGroupCreate($input: SellingPlanGroupInput!) { sellingPlanGroupCreate(input: $input) { sellingPlanGroup { id } userErrors { code field message } } }
```
 
with variables
 
```
input: { name: "my_test_selling_plan", options: ["option_group_1", "option_group_2"], sellingPlansToCreate: [ { deliveryPolicy: { recurring: { interval: "DAY", intervalCount: 2 } }, billingPolicy: { recurring: { interval: "DAY", intervalCount: 2 } }, name: "first_plan", options: ["option_plan_1_1", "option_plan_1_2"], }, { deliveryPolicy: { recurring: { interval: "DAY", intervalCount: 2 } }, billingPolicy: { recurring: { interval: "DAY", intervalCount: 2 } }, name: "second_plan", options: ["option_plan_2_1", "option_plan_2_2"], }, ], },
```
now lets add product to the sellingPlanGroup
and voila
only option_group_1 is rendered and first options from each plan
 
 
Any explanation of what is going on here? 
Replies 0 (0)