# $totalCount in sGetBasketData() extern anpassen

**URL:** <https://forum.shopware.com/t/totalcount-in-sgetbasketdata-extern-anpassen/86442>\
**Category:** Programmierung\
**Created:** [24. März 2021 um 18:09 UTC](https://forum.shopware.com/t/totalcount-in-sgetbasketdata-extern-anpassen/86442 "2021-03-24T18:09:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [24. März 2021 um 18:09 UTC](https://forum.shopware.com/t/totalcount-in-sgetbasketdata-extern-anpassen/86442/1 "2021-03-24T18:09:20Z")

</div>

Für mein eigenes Projekt müsste ich die Variable „$totalCount“ bei der Funktion „sGetBasketData()“ anpassen - natürlich über ein Plugin. Allerdings will ich jetzt nicht unbedingt die komplette Funktion ersetzen.

> <https://github.com/shopware/shopware/blob/5.7/engine/Shopware/Core/sBasket.php#L1386>

Gibt es irgendwie eine einfache Möglichkeit?
