# Konzept des Events + get CartID / OrderID

**URL:** <https://forum.shopware.com/t/konzept-des-events-get-cartid-orderid/47444>\
**Category:** Programmierung\
**Created:** [9. August 2017 um 19:50 UTC](https://forum.shopware.com/t/konzept-des-events-get-cartid-orderid/47444 "2017-08-09T19:50:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdes](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@abdes](https://forum.shopware.com/u/abdes)\
**Post date:** [9. August 2017 um 19:50 UTC](https://forum.shopware.com/t/konzept-des-events-get-cartid-orderid/47444/1 "2017-08-09T19:50:14Z")

</div>

Hallo,bin ganz neu hier und absoluter Anfänger.  
ich will ein Plugin entwicklen das auf einige Event &nbsp;im Frontend und Backend greift.  
Aber verstehe einige Sachen nicht z.B:  
$this-\>subscribeEvent(  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ‘Enlight\_Controller\_Action\_PostDispatchSecure\_Frontend’,  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ‘onFrontendPostDispatch’  
&nbsp; &nbsp; &nbsp; &nbsp; );  
Sind die Events wie Hooking ?&nbsp;  
Wo kann ich die Liste der Events finden oder wie kann ich die Events wissen die z.B auf current Seite laufen ?  
Wie heißt das Event ,wenn der Kunde auf Button (in den Warenkorb) anklickt und auch das Event des Buttons (Zur Kasse) ?  
hab geschaft UserID zu bekommen&nbsp;  
Shopware()-\>Session()-\>sUserId&nbsp;  
Aber wie bekomme ich CartID &nbsp;und OrderID auf Produktseite?  
&nbsp;  
Abdes  
Vielen Dank im Voraus!
