greencore / icecat Goto Github PK
View Code? Open in Web Editor NEWIcecat API - Find product description with EAN, UPC or GTIN-13
License: MIT License
Icecat API - Find product description with EAN, UPC or GTIN-13
License: MIT License
I found a product that don't have any image so this line fails
icecat/lib/OpenCatalog/product.js
Line 193 in 5be178f
Cannot read property 'map' of undefined
<ProductGallery/>
Module not found: Error: Can't resolve 'https' in 'C:\Documents\basicapp\node_modules\icecat\lib\OpenCatalog'
Would this be an issue on my end? Https nodemodule is installed and nothing else has issues finding this. Is there anything you can advise?
Cheers, Tom.
method getProductManualPDFurl returns "PDFURL" instead of "ManualPDFURL"
<ProductDescription ID="48068167" LongDesc="<b>Stylish 40” screen with 4K resolution and USB hub</b>\n\nThe ProLite ........" ManualPDFSize="3332489" ManualPDFURL="http://pdfs.icecat.biz/pdf/48068167-5566-manual.pdf" PDFSize="285343" PDFURL="http://pdfs.icecat.biz/pdf/48068167-5427.pdf" ShortDesc="39.5 MVA, 3 ms, 350 cd/m², 3840 x 2160, 16:9, PiP, PbP, HTCP, VESA, OSD, 3 x USB 3.0, HDMI, VGA, Black" URL="http://www.iiyama.com/gl_en/products/prolite-x4071uhsu-b1/" WarrantyInfo="" langid="1"/>
icecat/lib/OpenCatalog/product.js
Line 239 in 1a7080c
should be
const mObjectSet = {}
just want to be sure :P @GreenCore
Currently, we're (recently) targeting >=6.
Is this really necessary? I think we could support lower, say >=4 for xml2js?
Cannot read property 'length' of undefined at icecat.getImages (icecat/lib/OpenCatalog/product.js:193:40)
if (!this.productData.ProductGallery.length || !this.productData.ProductGallery[0].ProductPicture.length)
isn't safe if ProductGallery is undefined.
Create test version of icecat api
Any toughts on adding all properties from the xml response?
For example:
EndOfLifeDate
ReasonToBuy array
BulletPoints array
Reviews array
Thanks in advance
I have fixed this in #3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.