cancel
Showing results for 
Search instead for 
Did you mean: 

USing REST api add product to guest cart not display to cart detail page

USing REST api add product to guest cart not display to cart detail page

I try to handle my cart using REST api but my guest cart product not display on cart detail page 

I follow belo step

 

(1)Create a guest cart (this will give me the cartid)-> POST:http://<projectname>/msb/rest/default/V1/guest-carts

(2)add items to cart-> POST: http://<projectname>/msb/rest/default/V1/guest-carts/{$cartid}/items
BODY: {

"cartItem": {
"quote_id": '.$cartid.',
"sku": "Book27",
"qty": 1
}
}

 

by following this steps get response

stdClass Object ( [item_id] => 275 [sku] => Book27 [qty] => 1 [name] => Book27 [price] => 100 [product_type] => simple [quote_id] => 233 )

 

but this product not display on my cart detail page and also not display in minicart

1 REPLY 1

Re: USing REST api add product to guest cart not display to cart detail page