<p>You could either <a href="https://craftcms.stackexchange.com/questions/25907/overriding-basefrontendcontroller-in-craft-commerce">extend</a> the craft commerce <code>update-cart controller</code>
or get the specific fields via <code>element-api</code> what will unfortunately result in an extra api call.</p>

CC BY-SA 4.0
2019-06-26T07:54:36.967Z
2019-06-26T07:54:36.967Z
HendrikEng
<p>Is it possible to add additional data to the "commerce/cart/update-cart" callback? For instance, we want to include an Asset field so we can populate a cart modal with the item's image in one call?</p>

<p>Or is there a better way to tackle this type of functionality?</p>

<craft3><plugin-craftcommerce2><ecommerce>
Adding more data to the "commerce/cart/update-cart" action
# Adding more data to the "commerce/cart/update-cart" action

(Asked by: username_0 on 2019-06-25)

Is it possible to add additional data to the "commerce/cart/update-cart" callback? For instance, we want to include an Asset field so we can populate a cart modal with the item's image in one call?

Or is there a better way to tackle this type of functionality?

**Tags:** craft3, plugin-craftcommerce2, ecommerce

---

## 1 answers

### Answer by username_1 on 2019-06-26. Score: 0

You could either [extend](https://craftcms.stackexchange.com/questions/25907/overriding-basefrontendcontroller-in-craft-commerce) the craft commerce `update-cart controller`
or get the specific fields via `element-api` what will unfortunately result in an extra api call.


---

