Skip to content

Instantly share code, notes, and snippets.

@jiggliemon
Created February 5, 2012 06:10
Show Gist options
  • Save jiggliemon/1743413 to your computer and use it in GitHub Desktop.
Save jiggliemon/1743413 to your computer and use it in GitHub Desktop.
var configProduct = {
"attributes" : {
"128" : {
"code" : "color_hat",
"id" : "128",
"label" : "Hat Color",
"options" : [
{
"id" : "6",
"label" : "Black",
"oldPrice" : "0",
"price" : "0",
"products" : [ "2" ]
},
{
"id" : "7",
"label" : "Blue Tar",
"oldPrice" : "0",
"price" : "0",
"products" : [ "3" ]
}
]
},
"135" : {
"code" : "size_hat",
"id" : "135",
"label" : "Hat Size",
"options" : [
{
"id" : "92",
"label" : "7 3/8",
"oldPrice" : "0",
"price" : "0",
"products" : [ "2" ]
},
{ "id" : "94",
"label" : "7 5/8",
"oldPrice" : "0",
"price" : "0",
"products" : [ "3" ]
}
]
}
},
"basePrice" : "100",
"chooseText" : "Choose an Option...",
"oldPrice" : "100",
"productId" : "4",
"taxConfig" : { "currentTax" : 0,
"defaultTax" : 8.25,
"inclTaxTitle" : "Incl. Tax",
"includeTax" : false,
"showBothPrices" : false,
"showIncludeTax" : false
},
"template" : "$#{price}"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment