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

product not adding to cart #38

Open
mickyarun opened this issue May 31, 2016 · 1 comment
Open

product not adding to cart #38

mickyarun opened this issue May 31, 2016 · 1 comment

Comments

@mickyarun
Copy link

var products=    {quoteId:quote_id,products:[{'product_id':'39548','sku':'GC1002','qty':1.00,options: {option_id:88145,value_id:203213},'bundle_option':null,'bundle_option_qty':null,'links':null}]};
                    console.log(products);
                    magento.checkoutCartProduct.add(products,function(err,product) {console.log("err"+err);  console.log(product);});

can someone help the error i am getting

{"code":1022,"faultCode":1022,"faultString":"Please specify the product requi
red option(s).","original":{"message":"XML-RPC fault: Please specify the product
 required option(s).","name":"Error"},"name":"Magento Error","message":"Please s
pecify the product required option(s)."}
@navsaini53
Copy link

i guess the reason behind this error is that absence of name field in each product object in products array. Eg { productId:'39548' ,name:'this field is missing', .... }

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

2 participants