Feature request from mackelito, posted on GitHub Jun 09, 2016
Steps to reproduce
- Add items to the cart thru the rest API and inspect the result of the xhr
Expected result
- Response should be the cart. Same as when requesting '/rest/V1/guest-carts/29c8ee939e3a6146518e7340dfef75eb/totals'
Actual result
- 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.