# Shopware6 - How to attach extra info to order line item?

**URL:** <https://forum.shopware.com/t/shopware6-how-to-attach-extra-info-to-order-line-item/64770>\
**Category:** Programming (EN)\
**Created:** [17. Februar 2020 um 15:08 UTC](https://forum.shopware.com/t/shopware6-how-to-attach-extra-info-to-order-line-item/64770 "2020-02-17T15:08:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![michal\_bnet](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@michal\_bnet](https://forum.shopware.com/u/michal_bnet)\
**Post date:** [17. Februar 2020 um 15:08 UTC](https://forum.shopware.com/t/shopware6-how-to-attach-extra-info-to-order-line-item/64770/1 "2020-02-17T15:08:53Z")

</div>

Hi  
In Shopware6 i want to attach or display some extra info to order line item in admin.  
i am already storing this information in payload in database, but not sure how to display it.  
i tried to override `sw-order-line-items-grid` but that didnt work.

import { Component } from ‘src/core/shopware’;  
import templateOrder from './src/extension/sw-order-line-items-grid/sw-order-line-items-

Component.override(‘sw-order-line-items-grid’, {  
&nbsp; &nbsp; templateOrder  
});

Any idea if is possible to override `sw-order-line-items-grid` ?  
Or should i use some another approach ?

thanks

---

<div class="post-metadata">

**Author:** ![timbrns](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timbrns/32/19740_2.png) [@timbrns](https://forum.shopware.com/u/timbrns)\
**Post date:** [18. Februar 2020 um 06:43 UTC](https://forum.shopware.com/t/shopware6-how-to-attach-extra-info-to-order-line-item/64770/2 "2020-02-18T06:43:21Z")

</div>

Hi Michal,

I guess this is connected to&nbsp;this topic:&nbsp;[https://forum.shopware.com/discussion/63365/how-can-we-set-custom-fields-per-cart-line-item](https://forum.shopware.com/discussion/63365/how-can-we-set-custom-fields-per-cart-line-item).&nbsp;  
For OrderLineItems it should be the same as for CartLineItems.

Kind regards,  
Tim

---

<div class="post-metadata">

**Author:** ![michal\_bnet](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@michal\_bnet](https://forum.shopware.com/u/michal_bnet)\
**Post date:** [18. Februar 2020 um 07:08 UTC](https://forum.shopware.com/t/shopware6-how-to-attach-extra-info-to-order-line-item/64770/3 "2020-02-18T07:08:08Z")

</div>

hi timbrns

thanks

i have data already stored in payload

but not sure how to display them in admin when i click on order

as i probably need to override some template, but that wasnt working for me

---

<div class="post-metadata">

**Author:** ![timbrns](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timbrns/32/19740_2.png) [@timbrns](https://forum.shopware.com/u/timbrns)\
**Post date:** [18. Februar 2020 um 10:53 UTC](https://forum.shopware.com/t/shopware6-how-to-attach-extra-info-to-order-line-item/64770/4 "2020-02-18T10:53:34Z")

</div>

Hi Michal,

might also consider to have a look into these topics:  
[https://docs.shopware.com/en/shopware-platform-dev-en/how-to/add-admin-new-column](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/add-admin-new-column)  
[https://docs.shopware.com/en/shopware-platform-dev-en/how-to/add-admin-new-field?category=shopware-platform-dev-en/how-to](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/add-admin-new-field?category=shopware-platform-dev-en/how-to)  
It is not 100% for your case, but it should also work for your case aswell.

Kind regards,  
Tim

---

<div class="post-metadata">

**Author:** ![Muntz](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/muntz/32/13564_2.png) [@Muntz](https://forum.shopware.com/u/Muntz)\
**Post date:** [26. August 2021 um 13:30 UTC](https://forum.shopware.com/t/shopware6-how-to-attach-extra-info-to-order-line-item/64770/5 "2021-08-26T13:30:12Z")

</div>

> [@michal\_bnet](#):
>
> templateOrder

use template instead of templateOrder
