Skip to content

Instantly share code, notes, and snippets.

@dimassrio
Last active October 18, 2016 19:17
Show Gist options
  • Save dimassrio/85da642804909f9ee57c2bf26d983822 to your computer and use it in GitHub Desktop.
Save dimassrio/85da642804909f9ee57c2bf26d983822 to your computer and use it in GitHub Desktop.
"product" : {
"name" : "product 1",
"slug" : "product-1",
"description" : "product 1 description",
"image" : "http://xxx.xxx",
"icon" : "http://xxx.xxx" // fontawesome symbol,
"size": 1,
"side": 1,
"finishing" : [{"name": "finishing 1", "price": 100, "minCharge": 10000}],
"grammature" : [1,2,3]
}
"productPricing" : {
"product_id" : 1,
"color" : 1,
"material" : [1,2,3,4],
"pricing" : [
{
"basePrice" : 1000,
"minQuantity" : 0,
"maxQuantity" : 100,
"loop" : 10,
"increment" : 4
},
{
"basePrice" : 5000,
"minQuantity" : 100,
"maxQuantity" : 1000,
"loop" : 100,
"increment" : 4
}
],
"delivery" : [
{
"day" : 1,
"percentage" : 160,
"cutoff" : 100 // maximal order
},
{
"day" : 2,
"percentage" : 100,
"cutoff" : 1000 // maximal order
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment