# Get Basket Product Category on Checkout (Cart)

**URL:** <https://forum.shopware.com/t/get-basket-product-category-on-checkout-cart/71221>\
**Category:** Programmierung\
**Created:** [27. November 2020 um 18:18 UTC](https://forum.shopware.com/t/get-basket-product-category-on-checkout-cart/71221 "2020-11-27T18:18:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shopwarer1638](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@shopwarer1638](https://forum.shopware.com/u/shopwarer1638)\
**Post date:** [27. November 2020 um 18:18 UTC](https://forum.shopware.com/t/get-basket-product-category-on-checkout-cart/71221/1 "2020-11-27T18:18:41Z")

</div>

Hello world,

can anyone please give an idea of&nbsp;how can we reach the category of a product/Article (smarty variable&nbsp;for further GTM use) on Checkout (Cart)?

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [29. November 2020 um 16:07 UTC](https://forum.shopware.com/t/get-basket-product-category-on-checkout-cart/71221/2 "2020-11-29T16:07:45Z")

</div>

If its not in the template ( {debug} ). You need to add the data by own by listing on PostDispatch events
