# Existiert die abstract AbstractProductCountRoute class?

**URL:** <https://forum.shopware.com/t/existiert-die-abstract-abstractproductcountroute-class/96169>\
**Category:** Programmierung\
**Created:** [10. September 2022 um 14:46 UTC](https://forum.shopware.com/t/existiert-die-abstract-abstractproductcountroute-class/96169 "2022-09-10T14:46:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iteam](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/iteam/32/17249_2.png) [@iteam](https://forum.shopware.com/u/iteam)\
**Post date:** [10. September 2022 um 14:46 UTC](https://forum.shopware.com/t/existiert-die-abstract-abstractproductcountroute-class/96169/1 "2022-09-10T14:46:23Z")

</div>

In der Docu über [Add data to storefront page](https://developer.shopware.com/docs/guides/plugins/plugins/storefront/add-data-to-storefront-page) wird class ProductCountRoute extended von **AbstractProductCountRoute** aber die abstract Klasse wird weder **use** d noch als Bespiel gezeigt oder vermerkt.

Die **AbstractProductCountRoute** befinded sich nicht im /vendor Verzeichnis von v. 6.4.14.0.

Ist das ein Versehen in der Docu oder man soll sich selbst eine solche abstract class ausdenken / schreiben?

Ich bekomme 500 _ServiceNotFoundException_ weil ohne abstract wird die ProductCountRoute Klassen nicht genereriert.

---

<div class="post-metadata">

**Author:** ![abdullah](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@abdullah](https://forum.shopware.com/u/abdullah)\
**Post date:** [10. September 2022 um 16:03 UTC](https://forum.shopware.com/t/existiert-die-abstract-abstractproductcountroute-class/96169/2 "2022-09-10T16:03:08Z")

</div>

Es ist eine Doku, in der eine neue Route erstellt wird. Dementsprechend ist die erwähnte abstrakte Route wahrscheinlich nicht vorhanden und muss erstellt werden. Eine Anleitung hierzu findest du hier: [Add store API route - Shopware Developer](https://developer.shopware.com/docs/guides/plugins/plugins/framework/store-api/add-store-api-route)

---

<div class="post-metadata">

**Author:** ![iteam](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/iteam/32/17249_2.png) [@iteam](https://forum.shopware.com/u/iteam)\
**Post date:** [12. September 2022 um 01:55 UTC](https://forum.shopware.com/t/existiert-die-abstract-abstractproductcountroute-class/96169/3 "2022-09-12T01:55:30Z")

</div>

Danke abdullah, der Link hat mir weiter geholfen.
