cancel
Showing results for 
Search instead for 
Did you mean: 

Response when adding products to cart should be changed

0 Kudos

Response when adding products to cart should be changed

Feature request from mackelito, posted on GitHub Jun 09, 2016

Steps to reproduce

  1. Add items to the cart thru the rest API and inspect the result of the xhr

Expected result

  1. Response should be the cart. Same as when requesting '/rest/V1/guest-carts/29c8ee939e3a6146518e7340dfef75eb/totals'

Actual result

  1. The response is the product that we just added. eg: {"item_id":52,"sku":"MH01-XS-Black","qty":1,"name":"Chaz Kangeroo Hoodie-XS-Black","price":52,"product_type":"simple","quote_id":"569"}

--

If we don´t get the totals as response we need to make twice as many requests..

  • One for adding item to the cart and then
  • One to get the cart totals.

It would be way smoother to get the cart totals as the response when adding to the cart.

1 Comment
apiuser
New Member

Comment from choukalos, posted on GitHub Jun 09, 2016

Assigning @mbrinton01 and marking as desired improvement.