Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return({
- brand: (optical[0] == 'Optical') ? brand + ' Optical' : brand,
- model,
- colRef: item.querySelector('h4.sku').innerText.trim(),
- available: checkAvailable(item.querySelector('h4.availability span').className),
- colName: frontColour + (lensColour ? ' - ' + lensColour : ''),
- img: item.querySelector('div.zoom img').src,
- lensProperty: (lensProperty ? 'Polarized' : ''),
- price: item.querySelector('h4.prezzo').innerText.trim().replace('€','').replace('.00',''),
- provider: 'Kering',
- size: item.querySelector('h4.size').innerText.trim().replace(/ /g,'').replace(/-/g,'x').replace('Size','').replace(/mmx/g,'x')
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement