Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var spConfig = new Product.Config({"attributes":{"85":{"id":"85","code":"color","label":"Colour","options":[{"id":"9","label":"Black","price":"0","oldPrice":"0","products":["12","13"]}.....
- I need to be able to get the "products" (in this case 12,13) by the options id, in this case 9.
- At the moment the code I have just itterates through,
- var options = this.config.attributes[attributeId].options;
- for(var i=0;i<options.length;i++){
- alert(options[i].price);
- }
Add Comment
Please, Sign In to add comment