# Kein Ajax Warenkorb

**URL:** <https://forum.shopware.com/t/kein-ajax-warenkorb/21686>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [4. August 2014 um 08:06 UTC](https://forum.shopware.com/t/kein-ajax-warenkorb/21686 "2014-08-04T08:06:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![actionbikes](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@actionbikes](https://forum.shopware.com/u/actionbikes)\
**Post date:** [4. August 2014 um 08:06 UTC](https://forum.shopware.com/t/kein-ajax-warenkorb/21686/1 "2014-08-04T08:06:45Z")

</div>

Hallo, ich würde gerne den weg vom Ajax Warenkorb kommen, und stattdessen bei jedem Reload den Inhalt des Warenkorbs mitgeben. Dafür haben wir eine Methode, die sich an das Event: `Enlight\_Controller\_Action\_PostDispatch\_Frontend` bindet. In der Methode versuche ich den Checkout Controller zu instanziieren: ` $class = "Shopware\_Controllers\_Frontend\_Checkout"; try { Enlight\_Application::Instance()-\>Loader()-\>loadClass($class); } catch (Exception $e) { throw new Enlight\_Exception('Controller "' . $class . '" can\'t load failure'); } $proxy = Enlight\_Application::Instance()-\>Hooks()-\>getProxy($class); /\* @var $checkoutController Shopware\_Controllers\_Frontend\_Checkout \*/ $checkoutController = new $proxy($args-\>request,$args-\>response);` Sobald ich das mache, wird jedoch im Frontend kein Inhalt mehr ausgegeben. An was kann das liegen? Wäre sehr nett wenn ihr mir weiter helfen könntet… Viele Grüße Stefan
