diff options
| -rw-r--r-- | StoneIsland/www/js/lib/products/ProductView.js | 37 | ||||
| -rw-r--r-- | proxy/index.js | 1 |
2 files changed, 33 insertions, 5 deletions
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index 0e4063df..c1085b91 100644 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -69,7 +69,13 @@ var ProductView = ScrollableView.extend({ populate: function(data, details){ this.show() -console.log(data, details) +// console.log(data, details) + + var descriptions = {} + details['Item']['Descriptions'].forEach(function(pair){ + descriptions[pair.Key] = pair.Value + }) + var name_partz = data['ModelNames'].split(' ') var num = name_partz.shift() var title = name_partz.join(' ') @@ -77,10 +83,9 @@ console.log(data, details) var price = "$" + data['DiscountedPrice'] + ".00" var size = data['Sizes'][0] var size_label = SIZE_LOOKUP[size] - var color = data['Colors'][0] - console.log(color) + var color = data['Colors'].length && data['Colors'][0] var color_label = color && color['Text'] - var body = "" + var body = descriptions['EditorialDescription'] this.item = data this.color = color @@ -223,4 +228,28 @@ console.log(data, details) "MicroCategoryId": 1319 }, +DESCRIPTIONS: + +Age: "Adult" +Appliqué: "Logo detail" +ColoreFoto_ID: "3140" +Composition: "100% Cotton" +CustomsInvoiceDescr: "Woven" +Design: "Solid color" +EditorialDescription: "20081 DATA DRIP PIN<br>Short sleeve T-Shirt in cotton jersey. Garment dyed.<br>Stone Island Compass logo print on the front, made up of a series of numbers." +ItemDescription: "Logo detail<br>Jersey<br>Round collar<br>Solid color<br>" +KeywordDescription: "Logo detail Jersey Round collar Solid color Jersey Woven not made of fur " +Kind of fabric: "Woven" +MFC: "631520081CC-6315-81V0060" +MacroCategory: "POLO SHIRTS & T-SHIRTS" +MadeIn: "Made In Turkmenistan" +MadeInIsoCode: "TN" +MainMaterial: "Cotton" +Material Description: "Jersey" +MicroCategory: "Short sleeve t-shirt" +MicroCategoryPlural: "Short sleeve t-shirts" +ModelFabric: "631520081CC-6315-81" +ModelNames: "20081 DATA DRIP PIN" +Neckline: "Claudine or round collar" + */
\ No newline at end of file diff --git a/proxy/index.js b/proxy/index.js index b530c7a3..844bf3e7 100644 --- a/proxy/index.js +++ b/proxy/index.js @@ -103,7 +103,6 @@ function stream (req, res) { mime = 'text/html' } if (url == '/cordova.js') { - console.log(url) res.writeHead(200, 'OK', { 'Content-type': 'application/javascript' }) res.end('{}') return |
