Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS Error after adding products. #27

Open
88kbbq opened this issue Aug 2, 2017 · 0 comments
Open

JS Error after adding products. #27

88kbbq opened this issue Aug 2, 2017 · 0 comments

Comments

@88kbbq
Copy link

88kbbq commented Aug 2, 2017

I encountered a JS error: Uncaught TypeError: Cannot read property 'length' of undefined

Here is my products.json:
{
"products" : [
{
"name" : "Argon Capsule",
"price" : "99",
"options" : [
{ "Model" : "Model One,Model Two,Model Eight,Model 1000" }
],
"image" : "http://upload.wikimedia.org/wikipedia/commons/c/c6/Grey_Tshirt.jpg",
"description" : "This is a very awesome grey T-shirt"
},
{
"name" : "Argon Capsule Connector",
"price" : "25",
"options" : [
{ "Model" : "Model One,Model Two,Model Eight,Model 1000" }
],
"image" : "http://upload.wikimedia.org/wikipedia/commons/2/24/Blue_Tshirt.jpg",
"description" : "The Argon Capsule Connector Ring for the Coravin Wine System connects the Argon Capsule to your Coravin. Each model has slightly different threads, so make sure to chose the right model. Due to our manufacturing process, we charge a 20% restaocking fee for returns. If you have questions before purchase, please get in touch by e-mail or call 800-argon capsule. All parts are made of 304 stainless steel and engineered for perfect fit for your selected model."
},
{
"name" : "Argon Capsule Cap",
"price" : "40",
"options" : [
{ "Size" : "Small,Medium,Large" }
],
"image" : "http://upload.wikimedia.org/wikipedia/commons/c/c6/Grey_Tshirt.jpg",
"description" : "This is another fun grey T-shirt"
},
{
"name" : "Argon Capsule Body",
"price" : "50",
"image" : "http://upload.wikimedia.org/wikipedia/commons/c/c6/Grey_Tshirt.jpg",
"description" : "The Argon Capsule Body with included silicon O-ring screws snug into the Argon Capsule Cap to complete the cansister. Made of 304 stainless steel with brush finish, the body measures 15cm long and includes an argon charging port."
},
{
"name" : "Argon Capsule O-Ring Set",
"price" : "5",
"image" : "http://upload.wikimedia.org/wikipedia/commons/2/24/Blue_Tshirt.jpg",
"description" : "The Argon Capsule O-Ring Set includes the Cap O-Ring and the Body O-Ring made of silicon. O-Rings are necessary to maintain an air-tight seal."
},
{
"name" : "Argon Capsule Charging Port",
"price" : "10",
"image" : "http://upload.wikimedia.org/wikipedia/commons/c/c6/Grey_Tshirt.jpg",
"description" : "The Argon Capsule charging port screws into the bottom of the Argon Capsule Body and is engineered to withstand over 10,000psi."
}
]
}

JSON validates with JSONLint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant