Skip to content

Instantly share code, notes, and snippets.

@pws5068
Last active August 29, 2015 14:17
Show Gist options
  • Save pws5068/45c7bee9f4abba27869b to your computer and use it in GitHub Desktop.
Save pws5068/45c7bee9f4abba27869b to your computer and use it in GitHub Desktop.
getInitialSiteData SKU missing Choice for "abc" option
"product": {
"product_id": "2",
"name": "Product with Color Options",
"options": [{
"product_option_id": 17,
"name": "abc",
"choice_order": null,
"renderer": "dropdown",
"sort_order": 0
}, {
"product_option_id": 15,
"name": "Size",
"choice_order": ["Small", "Medium", "Large", "small", "large"],
"renderer": "dropdown",
"sort_order": 1
}, {
"product_option_id": 16,
"name": "Model",
"choice_order": ["Standard", "Premium", "Basic"],
"renderer": "dropdown",
"sort_order": 2
}],
"product_skus": [{
"product_sku_id": "37",
"options": [{
"product_sku_optionchoice_id": "6",
"name": "Size",
"choice": "small"
}, {
"product_sku_optionchoice_id": "7",
"name": "Model",
"choice": "Premium"
}]
}, {
"product_sku_id": "39",
"options": [{
"product_sku_optionchoice_id": "1",
"name": "Size",
"choice": "large"
}, {
"product_sku_optionchoice_id": "2",
"name": "Model",
"choice": "Basic"
}]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment